mirror of
https://github.com/cytopia/devilbox.git
synced 2025-05-29 13:44:28 +00:00
Make host ports configurable via .env file
This commit is contained in:
parent
58cacbe23e
commit
442a098690
@ -59,7 +59,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
# ---- Format: ----
|
# ---- Format: ----
|
||||||
# [HOST-ADDR : ] HOST-PORT : DOCKER-PORT
|
# [HOST-ADDR : ] HOST-PORT : DOCKER-PORT
|
||||||
- "${LOCAL_LISTEN_ADDR}80:80"
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_HTTPD}:80"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
@ -231,7 +231,7 @@ services:
|
|||||||
|
|
||||||
ports:
|
ports:
|
||||||
# [local-machine:]local-port:docker-port
|
# [local-machine:]local-port:docker-port
|
||||||
- "${LOCAL_LISTEN_ADDR}3306:3306"
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_MYSQL}:3306"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
@ -274,7 +274,7 @@ services:
|
|||||||
|
|
||||||
ports:
|
ports:
|
||||||
# [local-machine:]local-port:docker-port
|
# [local-machine:]local-port:docker-port
|
||||||
- "${LOCAL_LISTEN_ADDR}5432:5432"
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_POSTGRES}:5432"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
|
92
env-example
92
env-example
@ -113,34 +113,33 @@ TIMEZONE=Europe/Berlin
|
|||||||
###
|
###
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
##
|
###
|
||||||
## Local filesystem path to www projects.
|
### Local filesystem path to www projects.
|
||||||
##
|
###
|
||||||
##
|
|
||||||
HOST_PATH_TO_WWW_DOCROOTS=./data/www
|
HOST_PATH_TO_WWW_DOCROOTS=./data/www
|
||||||
|
|
||||||
##
|
###
|
||||||
## Local filesystem path to mysql/mariadb datadir.
|
### Local filesystem path to mysql/mariadb datadir.
|
||||||
##
|
###
|
||||||
## This can be an existing mysql data directory or empty.
|
### This can be an existing mysql data directory or empty.
|
||||||
## If it already is a mysql data directory with content,
|
### If it already is a mysql data directory with content,
|
||||||
## it will be mounted into the docker and used.
|
### it will be mounted into the docker and used.
|
||||||
##
|
###
|
||||||
## If this directory is empty, a new mysql database will be
|
### If this directory is empty, a new mysql database will be
|
||||||
## created.
|
### created.
|
||||||
##
|
###
|
||||||
HOST_PATH_TO_MYSQL_DATADIR=./data/mysql57
|
HOST_PATH_TO_MYSQL_DATADIR=./data/mysql57
|
||||||
|
|
||||||
##
|
###
|
||||||
## Local filesystem path to postgresql datadir.
|
### Local filesystem path to postgresql datadir.
|
||||||
##
|
###
|
||||||
## This can be an existing postgresql data directory or empty.
|
### This can be an existing postgresql data directory or empty.
|
||||||
## If it already is a postgresql data directory with content,
|
### If it already is a postgresql data directory with content,
|
||||||
## it will be mounted into the docker and used.
|
### it will be mounted into the docker and used.
|
||||||
##
|
###
|
||||||
## If this directory is empty, a new postgresql database will be
|
### If this directory is empty, a new postgresql database will be
|
||||||
## created.
|
### created.
|
||||||
##
|
###
|
||||||
HOST_PATH_TO_POSTGRES_DATADIR=./data/postgres96
|
HOST_PATH_TO_POSTGRES_DATADIR=./data/postgres96
|
||||||
|
|
||||||
|
|
||||||
@ -151,8 +150,10 @@ HOST_PATH_TO_POSTGRES_DATADIR=./data/postgres96
|
|||||||
###
|
###
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# - no options here
|
###
|
||||||
|
### Expose HTTPD Port to Host
|
||||||
|
###
|
||||||
|
HOST_PORT_HTTPD=80
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -161,15 +162,15 @@ HOST_PATH_TO_POSTGRES_DATADIR=./data/postgres96
|
|||||||
###
|
###
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
##
|
###
|
||||||
## MySQL root user password
|
### MySQL root user password
|
||||||
##
|
###
|
||||||
## If $HOST_PATH_TO_MYSQL_DATADIR already contains an existing
|
### If $HOST_PATH_TO_MYSQL_DATADIR already contains an existing
|
||||||
## mysql datadir, enter the password for the existing mysql database
|
### mysql datadir, enter the password for the existing mysql database
|
||||||
##
|
###
|
||||||
## If $HOST_PATH_TO_MYSQL_DATADIR is empty, choose a new password that
|
### If $HOST_PATH_TO_MYSQL_DATADIR is empty, choose a new password that
|
||||||
## will be applied
|
### will be applied
|
||||||
##
|
###
|
||||||
MYSQL_ROOT_PASSWORD=
|
MYSQL_ROOT_PASSWORD=
|
||||||
|
|
||||||
###
|
###
|
||||||
@ -177,6 +178,11 @@ MYSQL_ROOT_PASSWORD=
|
|||||||
###
|
###
|
||||||
MYSQL_GENERAL_LOG=1
|
MYSQL_GENERAL_LOG=1
|
||||||
|
|
||||||
|
###
|
||||||
|
### Expose MySQL Port to Host
|
||||||
|
###
|
||||||
|
HOST_PORT_MYSQL=3306
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -185,16 +191,20 @@ MYSQL_GENERAL_LOG=1
|
|||||||
###
|
###
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
##
|
###
|
||||||
## PostgreSQL 'root' user name (usually postgres)
|
### PostgreSQL 'root' user name (usually postgres)
|
||||||
##
|
###
|
||||||
POSTGRES_USER=postgres
|
POSTGRES_USER=postgres
|
||||||
|
|
||||||
##
|
###
|
||||||
## PostgreSQL 'root' user password
|
### PostgreSQL 'root' user password
|
||||||
##
|
###
|
||||||
POSTGRES_PASSWORD=
|
POSTGRES_PASSWORD=
|
||||||
|
|
||||||
|
###
|
||||||
|
### Expose MySQL Port to Host
|
||||||
|
###
|
||||||
|
HOST_PORT_POSTGRES=5432
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user