mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 21:32:03 +00:00
test(multiplayer): add chaos recovery smoke
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
services:
|
||||
database:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_DB: cosmic_clash_test
|
||||
POSTGRES_USER: cosmic_clash_test
|
||||
POSTGRES_PASSWORD: cosmic_clash_test
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U cosmic_clash_test -d cosmic_clash_test"]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 30
|
||||
|
||||
control-plane:
|
||||
build:
|
||||
context: .
|
||||
target: testkit-api
|
||||
environment:
|
||||
COSMIC_CLASH_POSTGRES_DSN: postgres://cosmic_clash_test:cosmic_clash_test@database:5432/cosmic_clash_test?sslmode=disable
|
||||
COSMIC_CLASH_WORKLOAD_SECRET: chaos-workload-secret
|
||||
command: ["--listen=0.0.0.0:8080", "--migrations=/opt/cosmic-clash/migrations"]
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "18082:8080"
|
||||
|
||||
maintenance:
|
||||
build:
|
||||
context: .
|
||||
target: maintenance
|
||||
environment:
|
||||
COSMIC_CLASH_POSTGRES_DSN: postgres://cosmic_clash_test:cosmic_clash_test@database:5432/cosmic_clash_test?sslmode=disable
|
||||
command: ["--dsn=postgres://cosmic_clash_test:cosmic_clash_test@database:5432/cosmic_clash_test?sslmode=disable", "--migrations=/opt/cosmic-clash/migrations", "--interval=1s", "--stalled-allocation-deadline=1s", "--stalled-allocation-batch=10", "--initial-connect-batch=1"]
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user