diff --git a/commands b/commands index 2898cdf..9b82b9e 100755 --- a/commands +++ b/commands @@ -230,9 +230,9 @@ case "$1" in IP=$(get_container_ip "$ID") PORT=$(get_random_port) echo "$PORT" > "$PORT_FILE" - echo "$IP:3306" > "$DESTINATION_FILE" + echo "$IP:$PLUGIN_DATASTORE_PORT" > "$DESTINATION_FILE" - iptables -t nat -A DOCKER -p tcp --dport "$PORT" -j DNAT --to-destination "$IP:3306" + 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" ;;