-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (77 loc) · 2.06 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
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
volumes:
# For steamcmd files and resource files used by the scripts
homedir_main:
# For Steam, for now
homedir_server:
# Where the server files will be installed
serverfiles:
# Server profile files
profiles:
# Upstream mission files
servermpmissions:
# Server mission files
mpmissions:
# Mods
mods:
services:
web:
build:
context: web
args:
- USER_ID
user: ${USER_ID}
volumes:
- homedir_main:/home/user
- serverfiles:/serverfiles
- servermpmissions:/serverfiles/mpmissions
- mods:/serverfiles/steamapps/workshop/content
- mods:/mods
- ./files:/files
- ./web:/web
ports:
- "8001:8001/tcp"
- "8000:8000/tcp"
restart: always
env_file:
- .env
server:
build:
context: server
args:
- USER_ID
user: ${USER_ID}
volumes:
- homedir_server:/home/user
- serverfiles:/serverfiles
- servermpmissions:/mpmissions:ro
- mods:/mods
- mpmissions:/serverfiles/mpmissions
- profiles:/profiles
- ./files:/files
- ./server:/server
# To have the server show up in the LAN tab of the DayZ launcher,
# it must run under host mode.
network_mode: host
# The above is mutually exclusive with the below. If you don't need
# the server to show up on the LAN, comment out the network_mode above
# and uncomment the port mappings below.
# ports:
# # Game port
# - 2302:2302/udp
# # RCON port
# - 2303:2303/udp
# # Steam port
# - 27016:27016/udp
# The server script execs itself when the server exits, unless told not to by `dz stop`
restart: no
# Allows attaching a debugger from the host
# cap_add:
# - SYS_PTRACE
# Allows core files to be created within the container. These are VERY LARGE! Enable only for debugging!
# One must also set the sysctl kernel.core_pattern parameter ON THE HOST to a path that is writable within the container. YMMV
# ulimits:
# core:
# soft: -1
# hard: -1
env_file:
- .env