test(multiplayer): cover compose allocator binding

This commit is contained in:
Josh Creek
2026-09-01 18:02:05 +01:00
parent 063dff463d
commit b72a7cf843
6 changed files with 83 additions and 1 deletions
+22
View File
@@ -36,6 +36,28 @@ services:
database:
condition: service_healthy
agones-provider:
image: python:3.12-alpine
command: ["python3", "/opt/fake_agones_provider.py"]
volumes:
- ./scripts/fake_agones_provider.py:/opt/fake_agones_provider.py:ro
allocator:
build:
context: .
target: allocator
environment:
COSMIC_CLASH_POSTGRES_DSN: postgres://cosmic_clash_test:cosmic_clash_test@database:5432/cosmic_clash_test?sslmode=disable
COSMIC_CLASH_AGONES_URL: http://agones-provider:8080
COSMIC_CLASH_AGONES_NAMESPACE: cosmic-clash
COSMIC_CLASH_WORKLOAD_SECRET: compose-workload-secret
command: ["--dsn=postgres://cosmic_clash_test:cosmic_clash_test@database:5432/cosmic_clash_test?sslmode=disable", "--migrations=/opt/cosmic-clash/migrations", "--interval=1s", "--transport=enet"]
depends_on:
database:
condition: service_healthy
agones-provider:
condition: service_started
game-server:
build:
context: .