From afc132c2e9f4589e8fb010b11ef5cb4e7d9391d9 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Sat, 11 May 2024 16:36:56 +0200 Subject: [PATCH] create minecraft docker --- docker-compose.yml | 53 +++++++++++++++++++--------------------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8429efc..76b0c20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,38 +55,29 @@ services: # Docker engine - --providers.docker.endpoint=npipe:////./pipe/docker_engine - ollama: - image: ollama/ollama + minecraft-test-docker: + image: itzg/minecraft-server restart: unless-stopped - container_name: ollama - ports: - - '11434:11434' volumes: - - './ollama:/root/.ollama' - - ollama-webui: - image: 'ghcr.io/ollama-webui/ollama-webui:main' - restart: unless-stopped - container_name: ollama-webui - volumes: - - './ollama-webui:/app/backend/data' - depends_on: - - ollama + - "./mc:/data" ports: - - 80:8080 + - "25565:25565" environment: - - './ollama/api=http://ollama:11434/api' - extra_hosts: - - host.docker.internal:host-gateway - labels: - - "traefik.enable=true" - - "traefik.http.routers.ollama-webui-http.entrypoints=http" - - "traefik.http.routers.ollama-webui-http.rule=Host(`ollama.localhost/`)" - - "traefik.http.routers.ollama-webui-http.middlewares=ollama-webui-redirect" - - "traefik.http.middlewares.ollama-webui-redirect.redirectscheme.scheme=https" - - "traefik.http.routers.ollama-webui-https.entrypoints=https" - - "traefik.http.routers.ollama-webui-https.rule=Host(`ollama.localhost/`)" - - "traefik.http.routers.ollama-webui-https.tls.certResolver=letsencrypt" - - "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" + EULA: "TRUE" + TYPE: FORGE + VERSION: "1.20.1" + FORGE_VERSION: "47.2.32" + ENABLE_AUTOPAUSE: "TRUE" + INIT_MEMORY: "256M" + MAX_MEMORY: "25G" + TZ: "Europe/Berne" + + OVERRIDE_SERVER_PROPERTIES: "TRUE" + MAX_TICK_TIME: "-1" + DIFFICULTY: "normal" + MODE: "creative" + MOTD: "Welcome Home" + + # More aggressive settings for demo purposes + AUTOPAUSE_TIMEOUT_INIT: "30" + AUTOPAUSE_TIMEOUT_EST: "10"