-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.multi-container.yml
49 lines (47 loc) · 1.75 KB
/
docker-compose.multi-container.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
version: '2'
services:
warfork1:
image: gelmo/warfork-docker:latest
working_dir: /home/warfork/server/Warfork.app/Contents/Resources
user: warfork
command: ["bash", "/usr/local/bin/entrypoint.sh"]
restart: always
network_mode: "host"
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- WF_PARAMS=+exec dedicated_autoexec.cfg
volumes:
- wfserver_vol:/home/warfork/server
- wflogs_vol:/home/warfork/.local/share/warfork-2.1/basewf
- /path/to/custom/basewf:/var/wf
warfork2:
image: gelmo/warfork-docker:latest
working_dir: /home/warfork/server/Warfork.app/Contents/Resources
user: warfork
command: ["wait-for-it", "--host=SERVER_IP", "--port=44450", "--timeout=0", "--", "bash", "/usr/local/bin/entrypoint.sh"]
restart: always
network_mode: "host"
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- WF_PARAMS=+exec instagib.cfg
volumes:
- wfserver_vol:/home/warfork/server
- wflogs_vol:/home/warfork/.local/share/warfork-2.1/basewf
- /path/to/custom/basewf:/var/wf
warfork3:
image: gelmo/warfork-docker:latest
working_dir: /home/warfork/server/Warfork.app/Contents/Resources
user: warfork
command: ["wait-for-it", "--host=SERVER_IP", "--port=44450", "--timeout=0", "--", "bash", "/usr/local/bin/entrypoint.sh"]
restart: always
network_mode: "host"
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- WF_PARAMS=+exec clanarena.cfg
volumes:
- wfserver_vol:/home/warfork/server
- wflogs_vol:/home/warfork/.local/share/warfork-2.1/basewf
- /path/to/custom/basewf:/var/wf
volumes:
wfserver_vol:
wflogs_vol: