Containerizes application #12

Merged
asohh merged 42 commits from container into main 2025-10-25 16:40:46 +02:00
Showing only changes of commit d812b46516 - Show all commits

chore: Removes need for container host directory by moving database to volume

Vincent Mahnke 2025-10-25 15:55:32 +02:00
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469

View file

@ -10,7 +10,7 @@ services:
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
- ./mariadb:/var/lib/mysql:Z - mariadb:/var/lib/mysql:Z
healthcheck: healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpassword"] test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpassword"]
interval: 10s interval: 10s
@ -52,3 +52,6 @@ services:
db: db:
condition: service_healthy condition: service_healthy
restart: true restart: true
volumes:
mariadb: