Skip to content

Commit

Permalink
Move Database into a Docker Volume
Browse files Browse the repository at this point in the history
For mongodb (and this applies to other containers as well, mainly databases) bind mounts on Windows and OS X are not support.
So to Fix strapi#80 we move its data into its own volume
  • Loading branch information
adnoh committed Aug 11, 2019
1 parent 8d87ec4 commit f5f01b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-compose.yml
Expand Up @@ -31,5 +31,9 @@ services:
ports:
- 27017:27017
volumes:
- ./db:/data/db
- strapi_mongodb_data:/data/db
restart: always

volumes:
strapi_mongodb_data:
driver: local

0 comments on commit f5f01b8

Please sign in to comment.