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

49 lines
1.0 KiB
YAML
Raw Normal View History

2024-02-15 02:09:59 -08:00
version: '3.9'
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
2023-10-25 22:18:34 -07:00
command: --api-binding=0.0.0.0:25566 --mapping=prominence.jafner.net=192.168.1.100:25565
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:
- path: ./exporter.env
required: true
labels:
- traefik.enable=false
2023-10-25 21:59:07 -07:00
prominence:
2023-10-25 21:13:18 -07:00
image: itzg/minecraft-server:latest
2023-10-25 21:59:07 -07:00
container_name: minecraft_prominence
env_file:
- path: ./minecraft.env
required: true
- path: ./minecraft_secrets.env
required: false
- path: ./prominence.env
required: true
2023-10-25 21:13:18 -07:00
volumes:
2023-10-25 21:59:07 -07:00
- $DOCKER_DATA/prominence:/data:rw
2023-10-25 21:13:18 -07:00
networks:
- minecraft
restart: "no"
networks:
2023-03-23 14:50:18 -07:00
minecraft:
monitoring:
external: true
volumes:
mc-router: