mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
[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.
This commit is contained in:
parent
214b284814
commit
969a473c62
8 changed files with 840 additions and 0 deletions
27
docker-compose.dev.yml
Normal file
27
docker-compose.dev.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue