mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 16:12:05 +00:00
test(multiplayer): cover compose allocator binding
This commit is contained in:
@@ -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: .
|
||||
|
||||
Reference in New Issue
Block a user