create minecraft docker
This commit is contained in:
parent
4f65a05e10
commit
afc132c2e9
@ -55,38 +55,29 @@ services:
|
|||||||
# Docker engine
|
# Docker engine
|
||||||
- --providers.docker.endpoint=npipe:////./pipe/docker_engine
|
- --providers.docker.endpoint=npipe:////./pipe/docker_engine
|
||||||
|
|
||||||
ollama:
|
minecraft-test-docker:
|
||||||
image: ollama/ollama
|
image: itzg/minecraft-server
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: ollama
|
|
||||||
ports:
|
|
||||||
- '11434:11434'
|
|
||||||
volumes:
|
volumes:
|
||||||
- './ollama:/root/.ollama'
|
- "./mc:/data"
|
||||||
|
|
||||||
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
|
|
||||||
ports:
|
ports:
|
||||||
- 80:8080
|
- "25565:25565"
|
||||||
environment:
|
environment:
|
||||||
- './ollama/api=http://ollama:11434/api'
|
EULA: "TRUE"
|
||||||
extra_hosts:
|
TYPE: FORGE
|
||||||
- host.docker.internal:host-gateway
|
VERSION: "1.20.1"
|
||||||
labels:
|
FORGE_VERSION: "47.2.32"
|
||||||
- "traefik.enable=true"
|
ENABLE_AUTOPAUSE: "TRUE"
|
||||||
- "traefik.http.routers.ollama-webui-http.entrypoints=http"
|
INIT_MEMORY: "256M"
|
||||||
- "traefik.http.routers.ollama-webui-http.rule=Host(`ollama.localhost/`)"
|
MAX_MEMORY: "25G"
|
||||||
- "traefik.http.routers.ollama-webui-http.middlewares=ollama-webui-redirect"
|
TZ: "Europe/Berne"
|
||||||
- "traefik.http.middlewares.ollama-webui-redirect.redirectscheme.scheme=https"
|
|
||||||
- "traefik.http.routers.ollama-webui-https.entrypoints=https"
|
OVERRIDE_SERVER_PROPERTIES: "TRUE"
|
||||||
- "traefik.http.routers.ollama-webui-https.rule=Host(`ollama.localhost/`)"
|
MAX_TICK_TIME: "-1"
|
||||||
- "traefik.http.routers.ollama-webui-https.tls.certResolver=letsencrypt"
|
DIFFICULTY: "normal"
|
||||||
- "traefik.http.routers.ollama-webui-https.service=ollama-webui"
|
MODE: "creative"
|
||||||
- "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth"
|
MOTD: "Welcome Home"
|
||||||
- "traefik.http.middlewares.ollama-webui-auth.basicauth.usersfile=/etc/traefik/authorized_users"
|
|
||||||
|
# More aggressive settings for demo purposes
|
||||||
|
AUTOPAUSE_TIMEOUT_INIT: "30"
|
||||||
|
AUTOPAUSE_TIMEOUT_EST: "10"
|
||||||
|
Loading…
Reference in New Issue
Block a user