From febe0ba6e87fcb012ffc59a4ffb57b2e9a2fb7c3 Mon Sep 17 00:00:00 2001 From: cytopia Date: Sat, 22 Sep 2018 12:12:11 +0200 Subject: [PATCH] Refs #175, Refs #382 Use Docker volumes instead of data directories --- docker-compose.yml | 57 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ef1164aa7..3aa231b85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -356,7 +356,7 @@ services: - ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/docker-default.d:ro${MOUNT_OPTIONS} # Mount MySQL Data directory - - ${HOST_PATH_MYSQL_DATADIR}/${MYSQL_SERVER}:/var/lib/mysql:rw${MOUNT_OPTIONS} + - devilbox-${MYSQL_SERVER:-mariadb-10.1}:/var/lib/mysql:rw${MOUNT_OPTIONS} depends_on: - bind @@ -393,7 +393,7 @@ services: - ${DEVILBOX_PATH}/log/pgsql-${PGSQL_SERVER}:/var/log/postgresql:rw${MOUNT_OPTIONS} # Mount PostgreSQL Data directory - - ${HOST_PATH_PGSQL_DATADIR}/${PGSQL_SERVER}:/var/lib/postgresql/data/pgdata:rw${MOUNT_OPTIONS} + - devilbox-pgsql-${PGSQL_SERVER:-9.6}:/var/lib/postgresql/data/pgdata:rw${MOUNT_OPTIONS} depends_on: - bind @@ -482,7 +482,7 @@ services: # HOST-DIRECTORY : DOCKER-DIRECTORY # Mount MongoDB Data directory - - ${HOST_PATH_MONGO_DATADIR}/${MONGO_SERVER}:/data/db:rw${MOUNT_OPTIONS} + - devilbox-mongo-${MONGO_SERVER:-latest}:/data/db:rw${MOUNT_OPTIONS} depends_on: - bind @@ -503,3 +503,54 @@ networks: config: - subnet: 172.16.238.0/24 gateway: 172.16.238.1 + + +################################################################################ +# VOLUMES +################################################################################ +volumes: + # ------------------------------------------------------------ + # MySQL + # ------------------------------------------------------------ + devilbox-mysql-5.5: + devilbox-mysql-5.6: + devilbox-mysql-5.7: + devilbox-mysql-8.0: + devilbox-mariadb-5.5: + devilbox-mariadb-10.0: + devilbox-mariadb-10.1: + devilbox-mariadb-10.2: + devilbox-mariadb-10.3: + devilbox-percona-5.5: + devilbox-percona-5.6: + devilbox-percona-5.7: + + # ------------------------------------------------------------ + # Postgres + # ------------------------------------------------------------ + devilbox-pgsql-9.1: + devilbox-pgsql-9.2: + devilbox-pgsql-9.3: + devilbox-pgsql-9.4: + devilbox-pgsql-9.5: + devilbox-pgsql-9.6: + devilbox-pgsql-10.0: + devilbox-pgsql-10.1: + devilbox-pgsql-10.2: + devilbox-pgsql-10.3: + devilbox-pgsql-10.4: + devilbox-pgsql-10.5: + + # ------------------------------------------------------------ + # MongoDB + # ------------------------------------------------------------ + devilbox-mongo-2.8: + devilbox-mongo-3.0: + devilbox-mongo-3.2: + devilbox-mongo-3.4: + devilbox-mongo-3.5: + devilbox-mongo-3.6: + devilbox-mongo-3.7: + devilbox-mongo-4.0: + devilbox-mongo-4.1: + devilbox-mongo-latest: