26 lines
No EOL
804 B
YAML
26 lines
No EOL
804 B
YAML
# Development-only stack: MariaDB in a container so the base OS stays clean and
|
|
# the app talks TCP to a network-attached DB, mirroring the production topology
|
|
# (DB on a nearby host). Production deploys via the Dockerfile only — Coolify
|
|
# never sees this file.
|
|
services:
|
|
mariadb:
|
|
image: mariadb:11
|
|
container_name: festbench-mariadb
|
|
restart: unless-stopped
|
|
environment:
|
|
MARIADB_DATABASE: festbench
|
|
MARIADB_USER: festbench
|
|
MARIADB_PASSWORD: festbench
|
|
MARIADB_ROOT_PASSWORD: festbench-root
|
|
ports:
|
|
- "127.0.0.1:3306:3306"
|
|
volumes:
|
|
- festbench-mariadb:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
volumes:
|
|
festbench-mariadb: |