-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
151 lines (150 loc) · 4.7 KB
/
docker-compose.yaml
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
version: "3.8"
services:
mc:
build:
context: .
dockerfile: Dockerfile-mc
image: ghcr.io/nincodedo/rhc-ocw-mc:6.5.0
env_file:
- motd_override.env
- docker.env
environment:
DIFFICULTY: 'hard'
HARDCORE: 'true'
OVERRIDE_SERVER_PROPERTIES: 'true'
ICON: 'https://cdn.discordapp.com/icons/109466144993210368/a_63bcc148bca7700101d1fb6b9522d638.png'
RESOURCE_PACK: 'https://ocw-rhc.services.nincodedo.dev/v1/resource-pack'
RESOURCE_PACK_SHA1: '1a6115175498b822e63f97a667276b97fad8d4aa'
WHITELIST_FILE: 'https://pub-45c3705f3f054e47a324249ec3c7e698.r2.dev/whitelist.json'
MEMORY: '3G'
BROADCAST_RCON_TO_OPS: 'false'
FUNCTION_PERMISSION_LEVEL: '4'
ENABLE_COMMAND_BLOCK: 'true'
SPAWN_PROTECTION: '0'
ENABLE_AUTOPAUSE: 'true'
MAX_TICK_TIME: "-1"
AUTOPAUSE_TIMEOUT_EST: '30'
AUTOPAUSE_TIMEOUT_INIT: '120'
TYPE: 'FABRIC'
REMOVE_OLD_MODS: 'true'
VERSION: '1.20.4'
INITIAL_ENABLED_PACKS: 'bundle,trade_rebalance,update_1_21'
RCON_CMDS_STARTUP: |-
gamerule doDaylightCycle false
chunky radius 3000
chunky start
chunky continue
RCON_CMDS_FIRST_CONNECT: |-
gamerule doDaylightCycle true
chunky pause
RCON_CMDS_LAST_DISCONNECT: |-
gamerule doDaylightCycle false
chunky continue
volumes:
- mc_server:/data
- mc_mod_configs:/config
container_name: mc
tty: true
stdin_open: true
labels:
dev.nincodedo.gameservercommander.game: "Minecraft"
dev.nincodedo.gameservercommander.group: "MC-RHC"
dev.nincodedo.gameservercommander.name: "OCW Minecraft RHC"
dev.nincodedo.gameservercommander.description: "OCW Radical Hardcore 6.5.0 - Minecraft 1.20.4"
dev.nincodedo.gameservercommander.connection_info: "games.nincodedo.dev"
com.centurylinklabs.watchtower.enable: false
log-watcher:
build:
context: .
dockerfile: Dockerfile-log-watcher
labels:
- "com.centurylinklabs.watchtower.enable=false"
image: ghcr.io/nincodedo/rhc-ocw:6.5.0
container_name: log-watcher
env_file:
- docker.env
environment:
TZ: 'CST6CDT'
MC_CONTAINER_NAME: 'mc'
secrets:
- discord_webhook
volumes:
- mc_server:/data
- mc_mod_configs:/config
- /var/run/docker.sock:/var/run/docker.sock
labels:
dev.nincodedo.gameservercommander.group: "MC-RHC"
com.centurylinklabs.watchtower.enable: false
mc-test:
build:
context: .
dockerfile: Dockerfile-mc
image: ghcr.io/nincodedo/rhc-ocw-mc:unstable
env_file:
- motd_override.env
- docker.env
environment:
DIFFICULTY: 'hard'
HARDCORE: 'true'
OVERRIDE_SERVER_PROPERTIES: 'true'
ICON: 'https://cdn.discordapp.com/icons/109466144993210368/a_63bcc148bca7700101d1fb6b9522d638.png'
RESOURCE_PACK_SHA1: '1a6115175498b822e63f97a667276b97fad8d4aa'
WHITELIST_FILE: 'https://pub-45c3705f3f054e47a324249ec3c7e698.r2.dev/whitelist.json'
MEMORY: '2G'
BROADCAST_RCON_TO_OPS: 'false'
FUNCTION_PERMISSION_LEVEL: '4'
ENABLE_COMMAND_BLOCK: 'true'
SPAWN_PROTECTION: '0'
ENABLE_AUTOPAUSE: 'true'
MAX_TICK_TIME: "-1"
AUTOPAUSE_TIMEOUT_EST: '30'
AUTOPAUSE_TIMEOUT_INIT: '120'
TYPE: 'FABRIC'
REMOVE_OLD_MODS: 'true'
VERSION: '1.20.4'
INITIAL_ENABLED_PACKS: 'bundle,trade_rebalance,update_1_21'
RESOURCE_PACK: 'https://ocw-rhc.services.nincodedo.dev/v1/resource-pack?type=beta'
RCON_CMDS_STARTUP: |-
gamerule doDaylightCycle false
RCON_CMDS_FIRST_CONNECT: |-
gamerule doDaylightCycle true
RCON_CMDS_LAST_DISCONNECT: |-
gamerule doDaylightCycle false
volumes:
- mc_server_test:/data
container_name: mc-test
tty: true
stdin_open: true
labels:
com.centurylinklabs.watchtower.enable: false
log-watcher-test:
build:
context: .
dockerfile: Dockerfile-log-watcher
labels:
- "com.centurylinklabs.watchtower.enable=false"
image: ghcr.io/nincodedo/rhc-ocw:unstable
container_name: log-watcher-test
env_file:
- docker.env
environment:
TZ: 'CST6CDT'
MC_CONTAINER_NAME: 'mc-test'
volumes:
- mc_server_test:/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
com.centurylinklabs.watchtower.enable: false
router:
image: itzg/mc-router
container_name: router
ports:
- "25565:25565"
command: --mapping=games.nincodedo.dev=mc:25565,rhctest.nincodedo.dev=mc-test:25565
volumes:
mc_server:
mc_server_test:
mc_mod_configs:
secrets:
discord_webhook:
file: ./secrets/discord_webhook.txt