mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-18 20:37:55 +00:00
#24 make docker-host listening IP configurable via .env
This commit is contained in:
parent
075924fd6f
commit
575fa0bf9c
@ -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:
|
||||
|
15
env-example
15
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:
|
||||
|
||||
|
||||
################################################################################
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user