AVA-docker/docker-compose.yml

58 lines
1.5 KiB
YAML
Raw Normal View History

2024-02-06 08:42:50 +00:00
version: '3'
services:
2024-05-11 16:49:16 +00:00
minecraft:
2024-05-11 14:36:56 +00:00
image: itzg/minecraft-server
2024-05-11 16:48:56 +00:00
restart: "unless-stopped"
stdin_open: true
2024-02-06 08:42:50 +00:00
volumes:
2024-05-11 16:48:56 +00:00
- ./mc/data:/data
- ./mc/mods:/mods:ro
- ./mc/icon.png:/icon.png
2024-05-18 16:38:48 +00:00
- ./mc/whitelist.json:/whitelist.json:ro
2024-05-16 08:29:41 +00:00
#- ./mc/mc2discord.toml:/data/config/mc2discord.toml
2024-05-11 16:48:56 +00:00
depends_on:
- lazytainer
network_mode: service:lazytainer
labels:
- "lazytainer.group=minecraft"
2024-02-06 08:42:50 +00:00
environment:
2024-05-11 14:36:56 +00:00
EULA: "TRUE"
TYPE: FORGE
VERSION: "1.20.1"
FORGE_VERSION: "47.2.32"
2024-05-11 16:48:56 +00:00
INIT_MEMORY: 128M
MAX_MEMORY: 25G
2024-05-11 14:36:56 +00:00
TZ: "Europe/Berne"
2024-05-11 16:48:56 +00:00
ICON: "/icon.png"
SNOOPER_ENABLED: "FALSE"
#SEED: ""
2024-05-11 14:36:56 +00:00
OVERRIDE_SERVER_PROPERTIES: "TRUE"
MAX_TICK_TIME: "-1"
DIFFICULTY: "normal"
2024-05-11 16:48:56 +00:00
MODE: "survival" # survival, creative, adventure, spectator
MOTD: "Bachelor's Minecraft Server"
ENABLE_WHITELIST: "TRUE"
WHITELIST_FILE: "/whitelist.json"
OVERRIDE_WHITELIST: "TRUE"
2024-02-26 08:08:06 +00:00
2024-02-26 10:19:04 +00:00
lazytainer:
image: ghcr.io/vmorganp/lazytainer:master
environment:
VERBOSE: false
ports:
- 25565:25565
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
- lazytainer.group.minecraft.sleepMethod=stop
- lazytainer.group.minecraft.ports=25565
2024-05-11 18:17:01 +00:00
- lazytainer.group.minecraft.minPacketThreshold=2 # Start after two incoming packets
2024-05-11 16:48:56 +00:00
- lazytainer.group.minecraft.inactiveTimeout=300
2024-02-26 10:19:04 +00:00
restart: unless-stopped
network_mode: bridge