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/
|
||||
creds.txt
|
||||
.tmp_mig.db
|
||||
.tmp_pytest
|
||||
.tmp_pytest
|
||||
db/
|
||||
|
||||
@@ -9,6 +9,8 @@ services:
|
||||
MARIADB_ROOT_PASSWORD: rootpass
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpass"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user