#24 make docker-host listening IP configurable via .env

This commit is contained in:
cytopia 2016-12-02 21:08:27 +01:00
parent 075924fd6f
commit 575fa0bf9c
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 18 additions and 3 deletions

View File

@ -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:

View File

@ -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:
################################################################################
###