-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswarm-compose.minecraft.yml
96 lines (91 loc) · 3.21 KB
/
swarm-compose.minecraft.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
90
91
92
93
94
95
96
services:
minecraft:
networks:
- reverse_proxy_network
- minecraft_network
image: itzg/minecraft-server:latest
tty: true
stdin_open: true
environment:
EULA: "TRUE"
MAX_MEMORY: "16G"
TYPE: "AUTO_CURSEFORGE"
VERSION: "1.21.1"
DIFFICULTY: "hard"
ICON: "https://jarnowieman.nl/api/files/minecraft/server_icon"
MOTD: "§l§5WiemanServer§r\n§rWelcome to my server!"
VANILLATWEAKS_SHARECODE: "cFTVFy,M6j9tu"
DATAPACKS: ""
CF_PAGE_URL: "https://www.curseforge.com/minecraft/modpacks/all-the-mods-10/files/6091559"
CF_API_KEY: %%CF_API_KEY%%
CURSEFORGE_FILES: |
https://www.curseforge.com/minecraft/mc-mods/bluemap/files/5919132
# https://www.curseforge.com/minecraft/bukkit-plugins/dynmap/files/6090792 # PAPERMC dynmap
MAX_PLAYERS: "20"
SNOOPER_ENABLED: "false"
MAX_BUILD_HEIGHT: "256"
SPAWN_PROTECTION: "0"
VIEW_DISTANCE: "10"
LEVEL: "atm10"
ALLOW_FLIGHT: "TRUE"
SERVER_NAME: "WiemanServer"
PLAYER_IDLE_TIMEOUT: "0"
EXEC_DIRECTLY: "true"
ENABLE_WHITELIST: "true"
volumes:
- ./data/minecraft:/data
ports:
- ":25565"
- ":8123"
deploy:
resources:
limits:
memory: 16G
reservations:
memory: 4G
labels:
- traefik.enable=true
- traefik.tcp.routers.minecraft.rule=HostSNI(`*`)
- traefik.tcp.routers.minecraft.entrypoints=minecraft
- traefik.http.routers.mcmap.service=mcmap-service
- traefik.http.services.mcmap-service.loadbalancer.server.port=8123
- traefik.http.routers.mcmap.rule=Host(`mc.wiemanboy.com`)
- traefik.http.routers.mcmap.entrypoints=websecure
- traefik.http.routers.mcmap.tls.certresolver=wiemanboycom-resolver
minecraft-backups:
networks:
- minecraft_network
image: itzg/mc-backup
environment:
BACKUP_INTERVAL: "2h"
RCON_HOST: "minecraft"
RCON_PORT: "25575"
BACKUP_NAME: "atm10"
PRUNE_BACKUPS_DAYS: "7"
PAUSE_IF_NO_PLAYERS: "true"
PRE_BACKUP_SCRIPT: |
rcon-cli say "§l§d$$(TZ="Europe/Amsterdam" date +"[%Y/%m/%d %H:%M:%S]")§r §eStarting backup..."
POST_BACKUP_SCRIPT: |
rcon-cli say "§l§d$$(TZ="Europe/Amsterdam" date +"[%Y/%m/%d %H:%M:%S]")§r §eBackup complete -> §c$$(ls -1 *.tgz | tail -n 1 | sed 's/\.tgz$$//')§r§e, next backup at: §a§u$$(TZ="Europe/Amsterdam" date -d "$$(echo $$BACKUP_INTERVAL | sed 's/h$$//') hours" +"%H:%M")"
POST_BACKUP_SCRIPT_FILE: /post-backup.sh
volumes:
- ./data/minecraft:/data:ro
- ./data/minecraft-backups:/backups
file-browser:
networks:
- reverse_proxy_network
image: hurlenko/filebrowser
environment:
FB_BASEURL: "/files"
volumes:
- ./data/minecraft/atm10/computercraft/:/data
- ./data/filebrowser/config:/config
labels:
- traefik.enable=true
- traefik.http.routers.file-browser.rule=Host(`mc.wiemanboy.com`) && PathPrefix(`/files`)
- traefik.http.routers.file-browser.entrypoints=websecure
- traefik.http.routers.file-browser.tls.certresolver=wiemanboycom-resolver
networks:
reverse_proxy_network:
external: true
minecraft_network: