-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.multi-server-profiles.yaml
More file actions
203 lines (163 loc) · 3.95 KB
/
Copy pathcompose.multi-server-profiles.yaml
File metadata and controls
203 lines (163 loc) · 3.95 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: haunted-minecraft
x-aikar-java-args: &aikar-java-args >-
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
x-proxy-java-args: &proxy-java-args >-
-XX:+UseG1GC
-XX:G1HeapRegionSize=4M
-XX:+UnlockExperimentalVMOptions
-XX:+ParallelRefProcEnabled
-XX:+AlwaysPreTouch
-XX:MaxInlineLevel=15
x-minecraft-common: &minecraft-common
image: ghcr.io/hauntedmc/mcserver:latest
restart: unless-stopped
networks:
- minecraft
read_only: true
tmpfs:
- /tmp:rw,exec,size=128m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 1024
stdin_open: true
tty: true
stop_grace_period: 120s
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"
x-healthcheck-25565: &healthcheck-25565
test: ["CMD-SHELL", "grep -q ':63DD .* 0A ' /proc/net/tcp /proc/net/tcp6 2>/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 180s
x-healthcheck-45565: &healthcheck-45565
test: ["CMD-SHELL", "grep -q ':B1FD .* 0A ' /proc/net/tcp /proc/net/tcp6 2>/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 120s
x-healthcheck-25595: &healthcheck-25595
test: ["CMD-SHELL", "grep -q ':63FB .* 0A ' /proc/net/tcp /proc/net/tcp6 2>/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 180s
services:
proxy:
<<: *minecraft-common
container_name: proxy
profiles:
- prod
mem_limit: 3G
mem_reservation: 2G
stop_grace_period: 90s
ulimits:
nofile:
soft: 262144
hard: 262144
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
TZ: Europe/Amsterdam
JVM_MEMORY: 2G
JAVA_ARGS: *proxy-java-args
MC_NOGUI: "false"
JAR_URL: "https://example.com/velocity.jar"
JAR_SHA256: ""
JAR_DOWNLOAD_MODE: always
ports:
- "25565:25565/tcp"
- "25565:25565/udp"
- "8249:8249/tcp"
healthcheck: *healthcheck-25565
volumes:
- type: bind
source: ./data/proxy
target: /data
lobby:
<<: *minecraft-common
container_name: lobby
profiles:
- prod
mem_limit: 4G
mem_reservation: 3G
environment:
TZ: Europe/Amsterdam
JVM_MEMORY: 3G
JAVA_ARGS: *aikar-java-args
MC_NOGUI: "true"
JAR_URL: "https://example.com/server.jar"
JAR_SHA256: ""
JAR_DOWNLOAD_MODE: always
healthcheck: *healthcheck-25565
volumes:
- type: bind
source: ./data/lobby
target: /data
survival:
<<: *minecraft-common
container_name: survival
profiles:
- prod
mem_limit: 10G
mem_reservation: 8G
environment:
TZ: Europe/Amsterdam
JVM_MEMORY: 8G
JAVA_ARGS: *aikar-java-args
MC_NOGUI: "true"
JAR_URL: "https://example.com/server.jar"
JAR_SHA256: ""
JAR_DOWNLOAD_MODE: always
healthcheck: *healthcheck-25565
volumes:
- type: bind
source: ./data/survival
target: /data
creative:
<<: *minecraft-common
container_name: creative
profiles:
- prod
mem_limit: 4G
mem_reservation: 3G
environment:
TZ: Europe/Amsterdam
JVM_MEMORY: 3G
JAVA_ARGS: *aikar-java-args
MC_NOGUI: "true"
JAR_URL: "https://example.com/server.jar"
JAR_SHA256: ""
JAR_DOWNLOAD_MODE: always
healthcheck: *healthcheck-25565
volumes:
- type: bind
source: ./data/creative
target: /data
minecraft:
name: minecraft