Commit 42d63236 authored by Jack Fletcher's avatar Jack Fletcher

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
parent d01d0874
......@@ -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 ##################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment