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
This commit is contained in:
Jack Fletcher 2016-07-12 16:39:08 +01:00
parent d01d087431
commit 42d63236f1
1 changed files with 7 additions and 7 deletions

View File

@ -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 ##################################