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

50 lines
1.3 KiB
YAML
Raw Normal View History

2024-02-15 02:09:59 -08:00
version: '3.9'
services:
router:
2024-07-16 14:25:20 -07:00
image: itzg/mc-router@sha256:e229e25352e360d5b92bee27ff36d419b4f0823f29d48050ab3ee926d26169d6
container_name: minecraft_router
restart: "no"
networks:
2023-03-23 14:50:18 -07:00
- minecraft
ports:
- 25565:25565
2024-06-19 22:02:09 -07:00
command: --api-binding=0.0.0.0:25566 --mapping=e9.jafner.net=192.168.1.135:25566
2023-06-14 18:25:07 -07:00
exporter-minecraft:
2024-07-16 14:25:20 -07:00
image: itzg/mc-monitor@sha256:374df9a9b95e7cf2f558e6c34a2c6c647919a36578e09760368b121547560791 # 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
2024-06-18 17:07:07 -07:00
e10:
2024-07-16 14:25:20 -07:00
image: itzg/minecraft-server@sha256:59cab528e80b4ac86ab6d5e0dd1046b96f3a608f0fc396c4dc095e85cb95f709 # should be :java21
2024-06-18 23:21:54 -07:00
user: 1001:1001
2024-06-18 17:07:07 -07:00
container_name: minecraft_e10
env_file:
- path: ./minecraft.env
required: true
- path: ./minecraft_secrets.env
required: false
2024-06-18 17:07:07 -07:00
- path: ./e10.env
required: true
2023-10-25 21:13:18 -07:00
volumes:
2024-06-18 17:07:07 -07:00
- $DOCKER_DATA/e10:/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: