minecraft/docker-compose.yml aktualisiert

This commit is contained in:
thomas committed 2026-12-02 10:04:38 +00:00
1 parent 5d6ded18e1
commit a0e6c49059
1 file changed
+11 -5
+11 -5
View File
@@ -1,7 +1,7 @@
services:
minecraft:
image: itzg/minecraft-bedrock-server:${MINECRAFT_TAG:-latest}
container_name: ${MINECRAFT_NAME:-minecraft-bedrock}
image: "itzg/minecraft-bedrock-server:${MINECRAFT_TAG:-latest}"
container_name: "${MINECRAFT_NAME:-minecraft-bedrock}"
restart: unless-stopped
ports:
- "${SERVER_PORT:-19132}:19132/tcp"
@@ -11,14 +11,20 @@ services:
VERSION: "${VERSION:-latest}"
GAMEMODE: "${GAMEMODE:-creative}"
SERVER_NAME: "${MINECRAFT_SERVER_NAME:-Bedrock Dedicated Server}"
TRANSPORT: "nethernet"
TRANSPORT: nethernet
SERVER_UDP_PORTS: "${SERVER_PUBLIC_IP:-<public_ip>}:${UDP_PORT_RANGE:-19140-19149}:${UDP_PORT_RANGE:-19140-19149}"
ALLOW_LIST: "${ALLOW_LIST:-false}"
OVERRIDE_SERVER_PROPERTIES: "TRUE"
healthcheck:
test: ["CMD", "/usr/local/bin/mc-monitor", "status-bedrock", "--protocol", "nethernet", "--host", "127.0.0.1", "--port", "19132"]
interval: 30s
timeout: 10s
retries: 3
start_period: 2m
volumes:
- ${MINECRAFT_DATA:-minecraft_bedrock_data}:/data
- "${MINECRAFT_DATA:-minecraft_bedrock_data}:/data"
stdin_open: true
tty: true
volumes:
minecraft_bedrock_data:
minecraft_bedrock_data: