50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
version: '3.9'
|
|
services:
|
|
router:
|
|
image: itzg/mc-router
|
|
container_name: minecraft_router
|
|
restart: "no"
|
|
networks:
|
|
- minecraft
|
|
ports:
|
|
- 25565:25565
|
|
command: --api-binding=0.0.0.0:25566 --mapping=e9.jafner.net=192.168.1.135:25566
|
|
|
|
exporter-minecraft:
|
|
image: itzg/mc-monitor # https://github.com/itzg/mc-monitor
|
|
container_name: minecraft_exporter
|
|
command: export-for-prometheus
|
|
restart: "no"
|
|
networks:
|
|
- monitoring
|
|
- minecraft
|
|
env_file:
|
|
- path: ./exporter.env
|
|
required: true
|
|
labels:
|
|
- traefik.enable=false
|
|
|
|
e10:
|
|
image: itzg/minecraft-server:java21
|
|
user: 1001:1001
|
|
container_name: minecraft_e10
|
|
env_file:
|
|
- path: ./minecraft.env
|
|
required: true
|
|
- path: ./minecraft_secrets.env
|
|
required: false
|
|
- path: ./e10.env
|
|
required: true
|
|
volumes:
|
|
- $DOCKER_DATA/e10:/data:rw
|
|
networks:
|
|
- minecraft
|
|
restart: "no"
|
|
|
|
networks:
|
|
minecraft:
|
|
monitoring:
|
|
external: true
|
|
volumes:
|
|
mc-router:
|