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:
parent
d01d087431
commit
42d63236f1
|
@ -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 ##################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue