Skip to content

Commit 42d6323

Browse files
committed
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 laradock#137, laradock#138
1 parent d01d087 commit 42d6323

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ services:
2727
data:
2828
build: ./data
2929
volumes:
30-
- /var/lib/mysql:/var/lib/mysql
31-
- /var/lib/postgres:/var/lib/postgres
32-
- /var/lib/mariadb:/var/lib/mariadb
33-
- /var/lib/memcached:/var/lib/memcached
34-
- /var/lib/redis:/data
35-
- /var/lib/neo4j:/var/lib/neo4j/data
36-
- /var/lib/mongo:/data/db
30+
- ./mysql:/var/lib/mysql
31+
- ./postgres:/var/lib/postgres
32+
- ./mariadb:/var/lib/mariadb
33+
- ./memcached:/var/lib/memcached
34+
- ./redis:/data
35+
- ./neo4j:/var/lib/neo4j/data
36+
- ./mongo:/data/db
3737

3838
### Nginx Server Container ##################################
3939

0 commit comments

Comments
 (0)