From 5fe279733d076719d534bfbbf377be1da3448b87 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Mon, 26 Feb 2024 09:08:06 +0100 Subject: [PATCH] add minecraft --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8429efc..2052293 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -90,3 +90,21 @@ services: - "traefik.http.routers.ollama-webui-https.service=ollama-webui" - "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth" - "traefik.http.middlewares.ollama-webui-auth.basicauth.usersfile=/etc/traefik/authorized_users" + + minecraft: + image: 'itzg/minecraft-server' + restart: unless-stopped + stdin_open: true + tty: true + ports: + - "25565:25565" + volumes: + - "mc:/data" + environment: + EULA: "TRUE" + ENABLE_AUTOPAUSE: "TRUE" + OVERRIDE_SERVER_PROPERTIES: "TRUE" + MAX_TICK_TIME: "-1" + AUTOPAUSE_TIMEOUT_INIT: "30" + AUTOPAUSE_TIMEOUT_EST: "10" +