/
docker-compose.yml
64 lines (60 loc) · 1.88 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
game-engine:
extends:
file: base-compose.yml
service: game-engine
ports:
- 3000:3000
environment:
- ADMIN_ROLE_ENABLED=0
- AGENT_ID_MAPPING=agentA,agentB
- INITIAL_HP=3
- PRNG_SEED=1234
- SHUTDOWN_ON_GAME_END_ENABLED=1
- TELEMETRY_ENABLED=1
- TICK_RATE_HZ=10
- TRAINING_MODE_ENABLED=0
- WORLD_SEED=1234
deploy:
resources:
limits:
cpus: "1"
memory: "1024M"
networks:
- coderone-tournament
# Uncomment the following "agent-a" blocks to connect a second agent to the environment
# agent-a:
# extends:
# file: base-compose.yml
# # update next line with a service in base-compose.yml to change agent
# service: python3-agent-dev
# environment:
# - GAME_CONNECTION_STRING=ws://game-engine:3000/?role=agent&agentId=agentA&name=python3-agent-dev
# depends_on:
# - game-engine
# deploy:
# resources:
# limits:
# cpus: "1"
# memory: "1024M"
# networks:
# - coderone-tournament
agent-b:
extends:
file: base-compose.yml
# update next line with a service in base-compose.yml to change agent
service: python3-agent-dev
environment:
- GAME_CONNECTION_STRING=ws://game-engine:3000/?role=agent&agentId=agentB&name=python3-agent
depends_on:
- game-engine
deploy:
resources:
limits:
cpus: "1"
memory: "1024M"
networks:
- coderone-tournament
networks:
coderone-tournament: