diff --git a/docker-compose.yml b/docker-compose.yml index f733e2a4..ce8d7d12 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,7 +59,7 @@ services: ports: # ---- Format: ---- # [HOST-ADDR : ] HOST-PORT : DOCKER-PORT - - "127.0.0.1:80:80" + - "${LOCAL_LISTEN_ADDR}80:80" networks: app_net: @@ -231,7 +231,7 @@ services: ports: # [local-machine:]local-port:docker-port - - "127.0.0.1:3306:3306" + - "${LOCAL_LISTEN_ADDR}3306:3306" networks: app_net: @@ -274,7 +274,7 @@ services: ports: # [local-machine:]local-port:docker-port - - "127.0.0.1:5432:5432" + - "${LOCAL_LISTEN_ADDR}5432:5432" networks: app_net: diff --git a/env-example b/env-example index 51b39bdd..5364d7eb 100644 --- a/env-example +++ b/env-example @@ -18,6 +18,21 @@ DEBUG_COMPOSE_ENTRYPOINT=0 +### +### At what IP address should the docker services listen +### on the Host computer? +### +### The specified default should be fine for Linux and OSX (127.0.0.1:). +### If you are on windows, you will probably have to change +### it to the IP address of the docker machine. +### +### a.) Leave blank, to listen on all interfaces (no trailing color ':') +### LOCAL_LISTEN_ADDR= +### b.) If an IP is specified, note the trailing colon ':' +### LOCAL_LISTEN_ADDR=127.0.0.1: +### +LOCAL_LISTEN_ADDR=127.0.0.1: + ################################################################################ ###