homelab/fighter/config/minecraft/docker-compose.yml
Joey Hafner 1109cfd9e6
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 17s
Deploy to Druid / Deploy (push) Successful in 18s
Deploy to Fighter / Notify (push) Successful in 2s
Deploy to Druid / Notify (push) Successful in 9s
Update all compose files to 3.9 spec
2024-02-15 02:09:59 -08:00

49 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=prominence.jafner.net=192.168.1.100:25565
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
prominence:
image: itzg/minecraft-server:latest
container_name: minecraft_prominence
env_file:
- path: ./minecraft.env
required: true
- path: ./minecraft_secrets.env
required: false
- path: ./prominence.env
required: true
volumes:
- $DOCKER_DATA/prominence:/data:rw
networks:
- minecraft
restart: "no"
networks:
minecraft:
monitoring:
external: true
volumes:
mc-router: