This commit is contained in:
2025-07-27 16:53:30 +02:00
parent d408699f94
commit a8c89b2544

View File

@@ -2,15 +2,15 @@ version: "3.8"
services:
web:
hostname: mechanical-web
container_name: mc-web-mechanical
image: nginx
volumes:
- ./web:/usr/share/nginx/html
ports:
- "8080:80"
networks:
- host
mc:
hostname: mechanical-neoforge
image: ghcr.io/itzg/minecraft-server:java21-graalvm
tty: true
stdin_open: true
@@ -39,8 +39,6 @@ services:
ICON: http://mechanical.oier.ovh/pack/icon.png
JVM_OPTS: -Dminecraft.api.env=custom -Dminecraft.api.auth.host=https://auth.oier.ovh -Dminecraft.api.account.host=https://auth.oier.ovh/user -Dminecraft.api.session.host=https://auth.oier.ovh/api/yggdrasil -Dminecraft.api.services.host=https://auth.oier.ovh/api/yggdrasil
networks:
- host
volumes:
- ../data/mechanical-neoforge:/data
#- ./simple-discord-bot.toml:/data/config/simple-discord-bot.toml
@@ -54,8 +52,6 @@ services:
- ./dashboards:/etc/grafana/dashboards
depends_on:
- prometheus
networks:
- host
monitor:
image: itzg/mc-monitor
command: export-for-prometheus
@@ -64,8 +60,6 @@ services:
DEBUG: "true"
depends_on:
- mc
networks:
- host
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.1
volumes:
@@ -73,8 +67,6 @@ services:
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- host
prometheus:
image: prom/prometheus
ports:
@@ -85,8 +77,6 @@ services:
depends_on:
- monitor
- minecraft-exporter
networks:
- host
minecraft-exporter:
build:
context: ./minecraft-exporter
@@ -101,8 +91,6 @@ services:
- ../data/mechanical-neoforge/world:/world:ro
depends_on:
- mc
networks:
- mechanihostcalnet
volumes:
mechanical-neoforge: {}
world: {}