-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
59 lines (55 loc) · 1.56 KB
/
Copy pathcompose.yml
File metadata and controls
59 lines (55 loc) · 1.56 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
version: "3.9"
services:
mc_champi:
image: itzg/minecraft-server
restart: unless-stopped
environment:
TZ: Europe/Paris
EULA: "TRUE"
OPS: MazexRedstone
ENABLE_COMMAND_BLOCK: "TRUE"
MEMORY: 2G
VERSION: 1.16.5
ICON: https://static.wikia.nocookie.net/mario/images/8/80/Champi_MK8.png/revision/latest?cb=20160715145102&path-prefix=fr
MOTD: Made in Marc Partensky
ANNOUNCE_PLAYER_ACHIEVEMENTS: "TRUE"
LEVEL: Server
ONLINE_MODE: "FALSE" # no need for an account
DIFFICULTY: hard
VIEW_DISTANCE: 32
# MAX_PLAYERS: 50
# WORLD: $BIND_MOUNTS/minecraft/zip/Server.zip
# SNOOPER_ENABLED: false
volumes:
- /srv/minecraft/champi:/data
# - minecraft:/data
ports:
- "25565:25565"
networks:
- minecraft
mc_champi_backup:
image: itzg/mc-backup
environment:
BACKUP_INTERVAL: "1d"
# instead of network_mode below, could declare RCON_HOST
SERVE_PORT: 25565
RCON_HOST: server
RCON_PORT: 25575
PAUSE_IF_NO_PLAYER: "true"
PLAYERS_ONLINE_CHECK_INTERVAL: 1h
TZ: Europe/Paris
DEST_DIR: /backups
networks:
- minecraft
volumes:
# mount the same volume used by server, but read-only
- /srv/minecraft/champi:/data:ro
# use a host attached directory so that it in turn can be backed up
# to external/cloud storage
- /srv/mcbackups:/backups
# share network namespace with server to simplify rcon access
# network_mode: "service:mc"
# volumes:
# minecraft:
networks:
minecraft: