docker-compose: add volume mapping for database persistence
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,4 +9,5 @@ worktrees/
|
|||||||
htmlcov/
|
htmlcov/
|
||||||
creds.txt
|
creds.txt
|
||||||
.tmp_mig.db
|
.tmp_mig.db
|
||||||
.tmp_pytest
|
.tmp_pytest
|
||||||
|
db/
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ services:
|
|||||||
MARIADB_ROOT_PASSWORD: rootpass
|
MARIADB_ROOT_PASSWORD: rootpass
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpass"]
|
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpass"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|||||||
Reference in New Issue
Block a user