forked from kamba4/sunders
chore: Removes need for container host directory by moving database to volume
All checks were successful
Build (and tag) Images / build (push) Successful in 48s
All checks were successful
Build (and tag) Images / build (push) Successful in 48s
This commit is contained in:
parent
3d9237361d
commit
cde87dc5aa
1 changed files with 4 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ services:
|
|||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- ./mariadb:/var/lib/mysql:Z
|
||||
- mariadb:/var/lib/mysql:Z
|
||||
healthcheck:
|
||||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpassword"]
|
||||
interval: 10s
|
||||
|
|
@ -52,3 +52,6 @@ services:
|
|||
db:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
|
||||
volumes:
|
||||
mariadb:
|
||||
Loading…
Add table
Add a link
Reference in a new issue