portable-mc-server/docker-compose.yml

32 lines
646 B
YAML
Raw Normal View History

2024-01-30 20:39:50 +03:00
version: '2'
services:
minecraft:
network_mode: host
restart: always
build: ./minecraft
privileged: true
labels:
io.balena.features.dbus: 1
io.balena.features.supervisor-api: 1
volumes:
- mcfiles:/usr/src/mcfiles
- localcache:/localcache
ports:
- "25565:25565/tcp"
2024-01-31 13:28:24 +03:00
- "25575:25575/tcp"
2024-01-30 20:39:50 +03:00
ssh:
network_mode: host
restart: always
build: ./ssh
privileged: false
labels:
io.balena.features.dbus: 1
volumes:
- mcfiles:/usr/src/mcfiles
- localcache:/localcache
ports:
- "22:22/tcp"
- "22:22/udp"
volumes:
mcfiles:
localcache: