2022-03-02 17:29:12 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
minecraft:
|
|
|
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
|
|
|
ports:
|
|
|
|
- "25565:25565"
|
|
|
|
volumes:
|
|
|
|
- "mc:/data"
|
|
|
|
environment:
|
|
|
|
EULA: "TRUE"
|
2022-03-04 22:52:00 +00:00
|
|
|
TYPE: FABRIC
|
2023-08-06 20:12:29 +00:00
|
|
|
MEMORY: "2G"
|
|
|
|
CURSEFORGE_FILES: |
|
|
|
|
fabric-api
|
|
|
|
chunky-pregenerator
|
|
|
|
# allocate from https://console.curseforge.com/ and set in .env file
|
|
|
|
CF_API_KEY: ${CF_API_KEY}
|
2022-03-02 17:29:12 +00:00
|
|
|
# YAML Heredoc, be sure to use '|-' this will remove the first newline and final new line.
|
|
|
|
# This is versus '|' that will leaving with two empty strings at top and bottom.
|
|
|
|
RCON_CMDS_STARTUP: |-
|
|
|
|
/gamerule doFireTick false
|
|
|
|
/team add New
|
|
|
|
/team add Old
|
2022-03-04 22:52:00 +00:00
|
|
|
/chunky radius 1000
|
|
|
|
/chunky start
|
2022-03-02 17:29:12 +00:00
|
|
|
RCON_CMDS_ON_CONNECT: |-
|
|
|
|
/team join New @a[team=]
|
2022-03-04 02:47:30 +00:00
|
|
|
/give @a[team=New] birch_boat
|
2022-03-02 17:29:12 +00:00
|
|
|
/team join Old @a[team=New]
|
2022-03-04 02:47:30 +00:00
|
|
|
RCON_CMDS_FIRST_CONNECT: |-
|
2022-03-04 22:52:00 +00:00
|
|
|
/chunky pause
|
2022-03-04 02:47:30 +00:00
|
|
|
RCON_CMDS_LAST_DISCONNECT: |-
|
|
|
|
/kill @e[type=minecraft:boat]
|
2022-03-04 22:52:00 +00:00
|
|
|
/chunky continue
|
2022-03-02 17:29:12 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
mc: {}
|