-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.external-network.yaml
More file actions
141 lines (112 loc) · 2.75 KB
/
Copy pathcompose.external-network.yaml
File metadata and controls
141 lines (112 loc) · 2.75 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
name: minecraft-external-network
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
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
services:
proxy:
<<: *minecraft-common
container_name: minecraft-proxy
networks:
minecraft-overlay:
ipv4_address: 192.168.3.38
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:
- "203.0.113.10:25565:25565/tcp"
- "203.0.113.10:25565:25565/udp"
healthcheck: *healthcheck-25565
volumes:
- type: bind
source: ./data/proxy
target: /data
lobby:
<<: *minecraft-common
container_name: minecraft-lobby
networks:
minecraft-overlay:
ipv4_address: 192.168.3.39
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
networks:
minecraft-overlay:
external: true
name: hnet-overlay