mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-23 11:45:28 +01:00
35 lines
661 B
YAML
35 lines
661 B
YAML
services:
|
|
mcfoo:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
MOTD: "foo"
|
|
volumes:
|
|
- mcfoodata:/data
|
|
labels:
|
|
mc-router.host: "foo.localhost"
|
|
mc-router.default: true
|
|
mcbar:
|
|
image: itzg/minecraft-server
|
|
environment:
|
|
EULA: "TRUE"
|
|
MOTD: "bar"
|
|
volumes:
|
|
- mcbardata:/data
|
|
labels:
|
|
mc-router.host: "bar.localhost"
|
|
router:
|
|
image: itzg/mc-router:latest
|
|
command: "-debug -in-docker"
|
|
depends_on:
|
|
- mcfoo
|
|
- mcbar
|
|
ports:
|
|
- "25565:25565"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
volumes:
|
|
mcfoodata:
|
|
mcbardata:
|