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

View File

@ -27,13 +27,13 @@ services:
data: data:
build: ./data build: ./data
volumes: volumes:
- /var/lib/mysql:/var/lib/mysql - ./mysql:/var/lib/mysql
- /var/lib/postgres:/var/lib/postgres - ./postgres:/var/lib/postgres
- /var/lib/mariadb:/var/lib/mariadb - ./mariadb:/var/lib/mariadb
- /var/lib/memcached:/var/lib/memcached - ./memcached:/var/lib/memcached
- /var/lib/redis:/data - ./redis:/data
- /var/lib/neo4j:/var/lib/neo4j/data - ./neo4j:/var/lib/neo4j/data
- /var/lib/mongo:/data/db - ./mongo:/data/db
### Nginx Server Container ################################## ### Nginx Server Container ##################################