Files
ServeursMinecraft/Vanilla/docker-compose.yml
2026-03-07 18:20:00 +01:00

39 lines
1016 B
YAML
Executable File

services:
mc:
image: itzg/minecraft-server
container_name: minecraft_vanilla
environment:
EULA: "true"
NO_AUTO_STOP: "true" # <- empêche l'arrêt automatique
#
# P R O P R I T E S D U S E R V E U R
MAX_MEMORY: 8G
MOTD: "A %TYPE% §l§cMinecraft§r §nserver (%VERSION%)"
DIFFICULTY: normal
ENABLE_RCON: "true"
RCON_PASSWORD: "bonjourJeSuisUnMotDePasseSecurise"
#
# R C O N R E G L E S
RCON_CMDS_STARTUP: |-
/pregen start 200
/gamerule doFireTick false
/team add New
/team add Old
RCON_CMDS_ON_CONNECT: |-
/team join New @a[team=]
/give @a[team=New] birch_boat
/team join Old @a[team=New]
RCON_CMDS_FIRST_CONNECT: |-
/pregen stop
RCON_CMDS_LAST_DISCONNECT: |-
/kill @e[type=minecraft:boat]
/pregen start 200
ports:
- "25565:25565"
- "25575:25575"
volumes:
- fabric:/data
volumes:
fabric: {}