use config for ports
This commit is contained in:
4
commands
4
commands
@@ -215,9 +215,9 @@ case "$1" in
|
||||
IP=$(get_container_ip "$ID")
|
||||
PORT=$(get_random_port)
|
||||
echo "$PORT" > "$PORT_FILE"
|
||||
echo "$IP:27017" > "$DESTINATION_FILE"
|
||||
echo "$IP:$PLUGIN_DATASTORE_PORT" > "$DESTINATION_FILE"
|
||||
|
||||
iptables -t nat -A DOCKER -p tcp --dport "$PORT" -j DNAT --to-destination "$IP:27017"
|
||||
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"
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user