-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 1.03 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
version: '2.2'
services:
# This is the official BF2 1.5 dedicated server.
# A default ESAI strategy and optmized ESAI strategies for maps are configured in entrypoint
bf2:
image: startersclan/docker-bf2:v1.5.3153.0
volumes:
- ./config/bf2/mods/bf2/ai/aidefault-custom.ai:/server/bf2/mods/bf2/ai/aidefault.ai:ro # Customize bots
- ./config/bf2/mods/bf2/settings/serversettings-custom.con:/server/bf2/mods/bf2/settings/serversettings.con:ro # Server config
- ./config/bf2/mods/bf2/settings/maplist-custom-coop.con:/server/bf2/mods/bf2/settings/maplist.con:ro # Maplist
ports:
- 16567:16567/udp
- 29900:29900/udp
networks:
- default
healthcheck:
test: /healthcheck localhost 29900
tty: true
stdin_open: true
entrypoint:
- /bin/bash
command:
- -c
- |
set -eu
esai-helper --mod bf2 apply default-strategy mediumfca
esai-helper --mod bf2 apply -f /esai-optimized-strategies-bf2.txt
exec ./start.sh
networks:
default: