docker-compose: add volume mapping for database persistence

This commit is contained in:
Space-Banane
2026-05-22 20:23:23 +02:00
parent 390135e456
commit 787f3b31ae
2 changed files with 4 additions and 1 deletions

View File

@@ -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