add lazytainer
This commit is contained in:
parent
2d7208ba34
commit
a7f45c3b0f
@ -90,25 +90,47 @@ services:
|
|||||||
- "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth"
|
- "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth"
|
||||||
- "traefik.http.middlewares.ollama-webui-auth.basicauth.usersfile=/etc/traefik/authorized_users"
|
- "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:
|
minecraft:
|
||||||
image: 'itzg/minecraft-server'
|
image: 'itzg/minecraft-server'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
ports:
|
|
||||||
- "25565:25565"
|
|
||||||
volumes:
|
volumes:
|
||||||
- "./mc:/data"
|
- "./mc:/data"
|
||||||
- "./mods:/mods:ro"
|
- "./mods:/mods:ro"
|
||||||
|
depends_on:
|
||||||
|
- lazytainer
|
||||||
|
network_mode: service:lazytainer
|
||||||
environment:
|
environment:
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
TYPE: "FORGE"
|
TYPE: "FORGE"
|
||||||
ENABLE_AUTOPAUSE: "TRUE"
|
|
||||||
OVERRIDE_SERVER_PROPERTIES: "TRUE"
|
TZ: "Europe/Zurich"
|
||||||
MAX_TICK_TIME: "-1"
|
MAX_TICK_TIME: "-1"
|
||||||
AUTOPAUSE_TIMEOUT_INIT: "30"
|
|
||||||
AUTOPAUSE_TIMEOUT_EST: "10"
|
|
||||||
INIT_MEMORY: 128M
|
INIT_MEMORY: 128M
|
||||||
MAX_MEMORY: 20G
|
MAX_MEMORY: 20G
|
||||||
|
|
||||||
|
#OVERRIDE_SERVER_PROPERTIES: "TRUE"
|
||||||
|
#ENABLE_AUTOPAUSE: "TRUE"
|
||||||
|
#AUTOPAUSE_TIMEOUT_INIT: "30"
|
||||||
|
#AUTOPAUSE_TIMEOUT_EST: "10"
|
||||||
|
|
||||||
|
|
||||||
|
DIFFICULTY: "easy"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user