-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
89 lines (89 loc) · 3.12 KB
/
docker-compose.dev.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
###
### THIS IS THE DEVELOPMENT COMPOSE FILE!
### You are most likely looking for the 'docker-compose.yml' file instead!
###
version: "3.3"
services:
asa-server-1:
container_name: asa-server-1
hostname: asa-server-1
entrypoint: "/usr/bin/start_server"
user: gameserver
image: "mschnitzer/asa-linux-server:development"
tty: true
environment:
- ASA_START_PARAMS=TheIsland_WP?listen?Port=7777?RCONPort=27020?RCONEnabled=True -WinLiveMaxPlayers=50 -clusterid=default -ClusterDirOverride="/home/gameserver/cluster-shared"
- ENABLE_DEBUG=0
ports:
# Game port for player connections through the server browser
- 0.0.0.0:7777:7777/udp
# RCON port for remote server administration
- 0.0.0.0:27020:27020/tcp
depends_on:
- set-permissions-1
volumes:
- steam-1:/home/gameserver/Steam:rw
- steamcmd-1:/home/gameserver/steamcmd:rw
- server-files-1:/home/gameserver/server-files:rw
- cluster-shared:/home/gameserver/cluster-shared:rw
- /etc/localtime:/etc/localtime:ro
- ./root/usr/share/asa-ctrl:/usr/share/asa-ctrl:rw
networks:
asa-network:
set-permissions-1:
entrypoint: "/bin/bash -c 'chown -R 25000:25000 /steam ; chown -R 25000:25000 /steamcmd ; chown -R 25000:25000 /server-files ; chown -R 25000:25000 /cluster-shared'"
user: root
image: "opensuse/leap"
volumes:
- steam-1:/steam:rw
- steamcmd-1:/steamcmd:rw
- server-files-1:/server-files:rw
- cluster-shared:/cluster-shared:rw
# asa-server-2:
# container_name: asa-server-2
# hostname: asa-server-2
# entrypoint: "/usr/bin/start_server"
# user: gameserver
# image: "mschnitzer/asa-linux-server:development"
# tty: true
# environment:
# - ASA_START_PARAMS=ScorchedEarth_WP?listen?Port=7778?RCONPort=27021?RCONEnabled=True -WinLiveMaxPlayers=50 -clusterid=default -ClusterDirOverride="/home/gameserver/cluster-shared"
# ports:
# # Game port for player connections through the server browser
# - 0.0.0.0:7778:7778/udp
# # RCON port for remote server administration
# - 0.0.0.0:27021:27021/tcp
# depends_on:
# - set-permissions-2
# volumes:
# - steam-2:/home/gameserver/Steam:rw
# - steamcmd-2:/home/gameserver/steamcmd:rw
# - server-files-2:/home/gameserver/server-files:rw
# - cluster-shared:/home/gameserver/cluster-shared:rw
# - /etc/localtime:/etc/localtime:ro
# - ./root/usr/share/asa-ctrl:/usr/share/asa-ctrl:rw
# networks:
# asa-network:
# set-permissions-2:
# entrypoint: "/bin/bash -c 'chown -R 25000:25000 /steam ; chown -R 25000:25000 /steamcmd ; chown -R 25000:25000 /server-files ; chown -R 25000:25000 /cluster-shared'"
# user: root
# image: "opensuse/leap"
# volumes:
# - steam-2:/steam:rw
# - steamcmd-2:/steamcmd:rw
# - server-files-2:/server-files:rw
# - cluster-shared:/cluster-shared:rw
volumes:
cluster-shared:
steam-1:
steamcmd-1:
server-files-1:
# steam-2:
# steamcmd-2:
# server-files-2:
networks:
asa-network:
attachable: true
driver: bridge
driver_opts:
com.docker.network.bridge.name: 'asanet'