forked from kamba4/sunders
chore: Removes need for container host directory by moving database to volume
This commit is contained in:
parent
55cc21f83d
commit
d812b46516
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