mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-21 05:43:08 +00:00
DVL-010 Make MySQL|PgSQL data dirs dynamic depending on version (opt container)
This commit is contained in:
parent
77492635d7
commit
54102a8b4c
@ -162,6 +162,11 @@ services:
|
|||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
# Server versions
|
||||||
|
- PHP_SERVER=${PHP_SERVER}
|
||||||
|
- HTTPD_SERVER=${HTTPD_SERVER}
|
||||||
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||||
|
- MYSQL_SERVER=${MYSQL_SERVER}
|
||||||
|
|
||||||
##
|
##
|
||||||
## Register optional enabled docker containers to PHP
|
## Register optional enabled docker containers to PHP
|
||||||
@ -258,7 +263,7 @@ services:
|
|||||||
- ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/conf.d:ro
|
- ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/conf.d:ro
|
||||||
|
|
||||||
# Mount MySQL Data directory
|
# Mount MySQL Data directory
|
||||||
- ${HOST_PATH_TO_MYSQL_DATADIR}:/var/lib/mysql
|
- ${HOST_PATH_TO_MYSQL_DATADIR}/${MYSQL_SERVER}:/var/lib/mysql
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
@ -297,7 +302,7 @@ services:
|
|||||||
- pgsql_socket_volume:/var/run/postgresql
|
- pgsql_socket_volume:/var/run/postgresql
|
||||||
|
|
||||||
# Mount PostgreSQL Data directory
|
# Mount PostgreSQL Data directory
|
||||||
- ${HOST_PATH_TO_POSTGRES_DATADIR}:/var/lib/postgresql/data/pgdata
|
- ${HOST_PATH_TO_POSTGRES_DATADIR}/${POSTGRES_SERVER}:/var/lib/postgresql/data/pgdata
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user