-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-multithread-example.yml
46 lines (43 loc) · 1.78 KB
/
docker-compose-multithread-example.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
version: "3.9"
services:
sc2_controller:
image: aiarena/arenaclient-sc2:v0.6.4
environment:
- "ACSC2_PORT=8083"
- "ACSC2_PROXY_HOST=proxy_controller"
volumes:
- "./runners/${COMPOSE_PROJECT_NAME}/logs:/logs" # a sc2_controller folder will be created in the logs folder
# SC2 Maps Path
# Set this as "- PATH_TO_YOUR_MAPS_FOLDER:/root/StarCraftII/maps"
# - C:\Program Files (x86)\StarCraft II\Maps:/root/StarCraftII/maps # Standard windows SC2 maps path
- ./maps:/root/StarCraftII/maps # Local maps folder
# - ~/StarCraftII/maps:/root/StarCraftII/maps # Relatively standard linux SC2 maps path
bot_controller1:
image: aiarena/arenaclient-bot:v0.6.4
volumes:
- "./bots:/bots"
- "./runners/${COMPOSE_PROJECT_NAME}/logs/bot_controller1:/logs"
environment:
- "ACBOT_PORT=8081"
- "ACBOT_PROXY_HOST=proxy_controller"
bot_controller2:
image: aiarena/arenaclient-bot:v0.6.4
volumes:
- "./bots:/bots"
- "./runners/${COMPOSE_PROJECT_NAME}/logs/bot_controller2:/logs"
environment:
- "ACBOT_PORT=8082"
- "ACBOT_PROXY_HOST=proxy_controller"
proxy_controller:
image: aiarena/arenaclient-proxy:v0.6.4
environment:
- "ACPROXY_PORT=8080"
- "ACPROXY_BOT_CONT_1_HOST=bot_controller1"
- "ACPROXY_BOT_CONT_2_HOST=bot_controller2"
- "ACPROXY_SC2_CONT_HOST=sc2_controller"
volumes:
- "./runners/${COMPOSE_PROJECT_NAME}/matches:/app/matches"
- "./config.toml:/app/config.toml"
- "./results.json:/app/results.json"
- "./runners/${COMPOSE_PROJECT_NAME}/replays:/replays"
- "./runners/${COMPOSE_PROJECT_NAME}/logs:/logs" # a proxy_controller folder will be created in the logs folder