Skip to content

Commit

Permalink
give the option to persist the database to the host
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmurray committed Jun 6, 2020
1 parent 2e5cb58 commit 737c933
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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
Expand Down

0 comments on commit 737c933

Please sign in to comment.