Skip to content

Commit

Permalink
Merge pull request #14 from aiarena/revert-use-of-host-network
Browse files Browse the repository at this point in the history
Revert use of host network
  • Loading branch information
lladdy authored Aug 8, 2023
2 parents 8210315 + f443e6d commit 7715d19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can run the test match by executing `docker-compose up` in the base folder o

Refer to [multithread-example.py](./multithread-example.py) for an example of how to run multiple matches in parallel.

Not that there are aspects of bot games that would need more work to be thread safe,
Note that there are aspects of bot games that would need more work to be thread safe,
such as bots which save data to their data folder.

## Troubleshooting
Expand Down
20 changes: 8 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,46 @@
version: "3.9"
services:
sc2_controller:
network_mode: host
image: aiarena/arenaclient-sc2:v0.4.3
environment:
- "ACSC2_PORT=8083"
- "ACSC2_PROXY_HOST=127.0.0.1"
- "ACSC2_PROXY_HOST=proxy_controller"
volumes:
- "./logs:/logs" # a sc2_controller folder will be created in the logs folder
- "./logs/sc2_controller:/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:
network_mode: host
image: aiarena/arenaclient-bot:v0.4.3
volumes:
- "./bots:/bots"
- "./logs/bot_controller1:/logs"
environment:
- "ACBOT_PORT=8081"
- "ACBOT_PROXY_HOST=127.0.0.1"
- "ACBOT_PROXY_HOST=proxy_controller"

bot_controller2:
network_mode: host
image: aiarena/arenaclient-bot:v0.4.3
volumes:
- "./bots:/bots"
- "./logs/bot_controller2:/logs"
environment:
- "ACBOT_PORT=8082"
- "ACBOT_PROXY_HOST=127.0.0.1"
- "ACBOT_PROXY_HOST=proxy_controller"

proxy_controller:
network_mode: host
image: aiarena/arenaclient-proxy:v0.4.3
environment:
- "ACPROXY_PORT=8080"
- "ACPROXY_BOT_CONT_1_HOST=127.0.0.1"
- "ACPROXY_BOT_CONT_2_HOST=127.0.0.1"
- "ACPROXY_SC2_CONT_HOST=127.0.0.1"
- "ACPROXY_BOT_CONT_1_HOST=bot_controller1"
- "ACPROXY_BOT_CONT_2_HOST=bot_controller2"
- "ACPROXY_SC2_CONT_HOST=sc2_controller"
volumes:
- "./matches:/app/matches"
- "./config.toml:/app/config.toml"
- "./results.json:/app/results.json"
- "./replays:/replays"
- "./logs:/logs" # a proxy_controller folder will be created in the logs folder
- "./logs:/logs" # a proxy_controller folder will be created in the logs folder

0 comments on commit 7715d19

Please sign in to comment.