Cockatrice/docker-compose.dev.yml
Lukas Brübach 969a473c62 [Dev] Add local Servatrice development profiles
Add a no-database guest profile (servatrice/dev.ini) and scripts to run the server and client side by side, with per-profile XDG directories for the client. Add a MySQL 8.4 compose stack published on loopback that loads the schema and an idempotent seed with accounts, roles, rooms, channels, reports, a warning, a ban, a deck, and chat log rows. Document both workflows in docs/DEVELOPMENT.md and link it from the README.
2026-11-10 12:29:49 +01:00

27 lines
767 B
YAML

services:
mysql:
image: mysql:8.4
command:
- --sql_mode=
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: servatrice
MYSQL_USER: servatrice
MYSQL_PASSWORD: password
ports:
- "127.0.0.1:3306:3306"
volumes:
- cockatrice-dev-mysql:/var/lib/mysql
- ./servatrice/servatrice.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
- ./servatrice/dev/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql:ro
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -proot --silent"]
interval: 3s
timeout: 5s
retries: 30
start_period: 20s
volumes:
cockatrice-dev-mysql: