From 42d63236f18427a8dce6c5f813e78b9af9dd27c2 Mon Sep 17 00:00:00 2001 From: Jack Fletcher Date: Tue, 12 Jul 2016 16:39:08 +0100 Subject: [PATCH] Changed the data container volume mappings All of the database data volume mapping have been changed from the host's `/var/lib` directory to locally alongside the laradock installation. This should hopefully prevent issues where data disappears after containers are restarted or data on the host machine is overwritten by accident (scary!) Additionally this should make data easier to backup between installations - especially on Windows where `/var` does not exist and is created transparently by Docker Machine/Windows beta. This change will most likely cause data to disappear from existing installations, however it may reappear if moved to it's new home. References #137, #138 --- docker-compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9d13ae6..4a8873f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,13 +27,13 @@ services: data: build: ./data volumes: - - /var/lib/mysql:/var/lib/mysql - - /var/lib/postgres:/var/lib/postgres - - /var/lib/mariadb:/var/lib/mariadb - - /var/lib/memcached:/var/lib/memcached - - /var/lib/redis:/data - - /var/lib/neo4j:/var/lib/neo4j/data - - /var/lib/mongo:/data/db + - ./mysql:/var/lib/mysql + - ./postgres:/var/lib/postgres + - ./mariadb:/var/lib/mariadb + - ./memcached:/var/lib/memcached + - ./redis:/data + - ./neo4j:/var/lib/neo4j/data + - ./mongo:/data/db ### Nginx Server Container ##################################