Skip to content

Commit

Permalink
Added volume database for service db in compose files. (open-eats#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
hertfelder authored Apr 26, 2020
1 parent 4184f02 commit 3817693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ services:
env_prod.list
db:
image: mariadb:5.5.64
volumes:
- database:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
Expand Down
2 changes: 2 additions & 0 deletions docker-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ services:
env_stg.list
db:
image: mariadb
volumes:
- database:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
Expand Down

0 comments on commit 3817693

Please sign in to comment.