homelab/fighter/config/minecraft/docker-compose.yml

32 lines
604 B
YAML
Raw Normal View History

version: '3'
services:
router:
image: itzg/mc-router
container_name: minecraft_router
restart: "no"
networks:
2023-03-23 14:50:18 -07:00
- minecraft
ports:
- 25565:25565
command: --api-binding=0.0.0.0:25566
2023-06-14 18:25:07 -07:00
exporter-minecraft:
image: itzg/mc-monitor # https://github.com/itzg/mc-monitor
container_name: minecraft_exporter
command: export-for-prometheus
restart: "no"
networks:
- monitoring
2023-03-23 14:50:18 -07:00
- minecraft
env_file:
- exporter.env
labels:
- traefik.enable=false
networks:
2023-03-23 14:50:18 -07:00
minecraft:
monitoring:
external: true
volumes:
mc-router: