From ce5e9086c2e53f1d23afdbc4af63f50327fdfb3e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 29 Aug 2015 02:37:50 -0400 Subject: [PATCH] use config for ports --- commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands b/commands index ce63a48..0c3a34f 100755 --- a/commands +++ b/commands @@ -219,9 +219,9 @@ case "$1" in IP=$(get_container_ip "$ID") PORT=$(get_random_port) echo "$PORT" > "$PORT_FILE" - echo "$IP:6379" > "$DESTINATION_FILE" + echo "$IP:$PLUGIN_DATASTORE_PORT" > "$DESTINATION_FILE" - iptables -t nat -A DOCKER -p tcp --dport "$PORT" -j DNAT --to-destination "$IP:6379" + iptables -t nat -A DOCKER -p tcp --dport "$PORT" -j DNAT --to-destination "$IP:$PLUGIN_DATASTORE_PORT" dokku_log_info1 "Service $SERVICE exposed on port $PORT" ;;