mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
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.
27 lines
767 B
YAML
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:
|