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

69 lines
1.6 KiB
YAML
Raw Normal View History

version: '3'
services:
router:
image: itzg/mc-router
container_name: minecraft_router
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
networks:
2023-03-23 14:50:18 -07:00
- minecraft
ports:
- 25565:25565
2023-06-14 18:39:00 -07:00
command: --mapping=bmcp.janfer.net=bmcp:25565,e9.janfer.net=e9:25565,fan.janfer.net=fan:25565,vanilla.janfer.net=vanilla:25565,vanilla2.janfer.net=vanilla2:25565,garfnuts.jafner.net=e8:25565 --api-binding=0.0.0.0:25566
2023-06-14 18:25:07 -07:00
e8:
image: itzg/minecraft-server:latest
container_name: minecraft_e8
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
env_file:
- minecraft.env
2023-06-14 18:37:34 -07:00
- minecraft_secrets.env
2023-06-14 18:25:07 -07:00
- e8.env
volumes:
- $DOCKER_DATA/e8:/data:rw
networks:
2023-06-14 18:32:09 -07:00
- minecraft
2023-06-14 18:25:07 -07:00
restart: "no"
exporter-minecraft:
image: itzg/mc-monitor # https://github.com/itzg/mc-monitor
container_name: minecraft_exporter
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
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: