Merge pull request #221 from jpmurray/persis-database

[Docker] Dive the direction to persist database on the host rather than a volume if desired
This commit is contained in:
Mohit Panjwani
2020-06-08 18:12:44 +05:30
committed by GitHub

View File

@ -22,6 +22,9 @@ services:
restart: always
volumes:
- db:/var/lib/mysql
# If you want to persist data on the host, comment the line above this one...
# and uncomment the line under this one.
#- ./docker-compose/db/data:/var/lib/mysql:rw,delegated
environment:
MYSQL_USER: crater
MYSQL_PASSWORD: crater