mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 13:52:27 +00:00
21 lines
438 B
YAML
21 lines
438 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
minecraft:
|
|
image: itzg/minecraft-server
|
|
ports:
|
|
- "25565:25565"
|
|
volumes:
|
|
- "mc:/data"
|
|
environment:
|
|
EULA: "TRUE"
|
|
ENABLE_AUTOPAUSE: "TRUE"
|
|
OVERRIDE_SERVER_PROPERTIES: "TRUE"
|
|
MAX_TICK_TIME: "-1"
|
|
# More aggressive settings for demo purposes
|
|
AUTOPAUSE_TIMEOUT_INIT: "30"
|
|
AUTOPAUSE_TIMEOUT_EST: "10"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
mc: {}
|