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
+10 -4
+10 -4
View File
@@ -1,7 +1,7 @@
services: services:
minecraft: minecraft:
image: itzg/minecraft-bedrock-server:${MINECRAFT_TAG:-latest} image: "itzg/minecraft-bedrock-server:${MINECRAFT_TAG:-latest}"
container_name: ${MINECRAFT_NAME:-minecraft-bedrock} container_name: "${MINECRAFT_NAME:-minecraft-bedrock}"
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${SERVER_PORT:-19132}:19132/tcp" - "${SERVER_PORT:-19132}:19132/tcp"
@@ -11,12 +11,18 @@ services:
VERSION: "${VERSION:-latest}" VERSION: "${VERSION:-latest}"
GAMEMODE: "${GAMEMODE:-creative}" GAMEMODE: "${GAMEMODE:-creative}"
SERVER_NAME: "${MINECRAFT_SERVER_NAME:-Bedrock Dedicated Server}" 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}" SERVER_UDP_PORTS: "${SERVER_PUBLIC_IP:-<public_ip>}:${UDP_PORT_RANGE:-19140-19149}:${UDP_PORT_RANGE:-19140-19149}"
ALLOW_LIST: "${ALLOW_LIST:-false}" ALLOW_LIST: "${ALLOW_LIST:-false}"
OVERRIDE_SERVER_PROPERTIES: "TRUE" 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: volumes:
- ${MINECRAFT_DATA:-minecraft_bedrock_data}:/data - "${MINECRAFT_DATA:-minecraft_bedrock_data}:/data"
stdin_open: true stdin_open: true
tty: true tty: true