mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-18 11:38:51 +00:00
28 lines
732 B
YAML
28 lines
732 B
YAML
# Source: https://github.com/itzg/mc-router/blob/main/examples/docker-autoscale/compose-minimal.yml
|
|
services:
|
|
router:
|
|
image: itzg/mc-router
|
|
environment:
|
|
IN_DOCKER: true
|
|
AUTO_SCALE_DOWN: true
|
|
AUTO_SCALE_UP: true
|
|
AUTO_SCALE_DOWN_AFTER: 2h
|
|
AUTO_SCALE_ASLEEP_MOTD: "Server is asleep. Join again to wake it up!"
|
|
ports:
|
|
- "25565:25565"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
vanilla:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
labels:
|
|
mc-router.host: "vanilla.example.com"
|
|
paper:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
TYPE: PAPER
|
|
labels:
|
|
mc-router.host: "paper.example.com"
|