DVL-010 Make MySQL|PgSQL data dirs dynamic depending on version (opt container)

This commit is contained in:
cytopia 2017-04-23 16:11:24 +02:00
parent 77492635d7
commit 54102a8b4c
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -162,6 +162,11 @@ services:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- 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
@ -258,7 +263,7 @@ services:
- ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/conf.d:ro
# 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
# 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
# ----------------------------------------