diff --git a/docker-compose.yml b/docker-compose.yml index be0242a..102a1f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -90,25 +90,47 @@ services: - "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth" - "traefik.http.middlewares.ollama-webui-auth.basicauth.usersfile=/etc/traefik/authorized_users" + 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 + - lazytainer.group.minecraft.minPacketThreshold=2 # Start after two incomming packets + - lazytainer.group.minecraft.inactiveTimeout=60 # 10 minutes, to allow the server to bootstrap. You can probably make this lower later if you want. + restart: unless-stopped + network_mode: bridge + minecraft: image: 'itzg/minecraft-server' restart: unless-stopped stdin_open: true tty: true - ports: - - "25565:25565" volumes: - "./mc:/data" - "./mods:/mods:ro" - + depends_on: + - lazytainer + network_mode: service:lazytainer environment: EULA: "TRUE" TYPE: "FORGE" - ENABLE_AUTOPAUSE: "TRUE" - OVERRIDE_SERVER_PROPERTIES: "TRUE" + + TZ: "Europe/Zurich" MAX_TICK_TIME: "-1" - AUTOPAUSE_TIMEOUT_INIT: "30" - AUTOPAUSE_TIMEOUT_EST: "10" INIT_MEMORY: 128M MAX_MEMORY: 20G + #OVERRIDE_SERVER_PROPERTIES: "TRUE" + #ENABLE_AUTOPAUSE: "TRUE" + #AUTOPAUSE_TIMEOUT_INIT: "30" + #AUTOPAUSE_TIMEOUT_EST: "10" + + + DIFFICULTY: "easy" +