more networking

This commit is contained in:
2025-07-27 16:36:42 +02:00
parent d9f8316f25
commit d408699f94

View File

@@ -9,8 +9,7 @@ services:
ports:
- "8080:80"
networks:
- mechanicalnet
network_mode: "host"
- host
mc:
image: ghcr.io/itzg/minecraft-server:java21-graalvm
tty: true
@@ -41,8 +40,7 @@ services:
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:
- mechanicalnet
network_mode: "host"
- host
volumes:
- ../data/mechanical-neoforge:/data
#- ./simple-discord-bot.toml:/data/config/simple-discord-bot.toml
@@ -57,7 +55,7 @@ services:
depends_on:
- prometheus
networks:
- mechanicalnet
- host
monitor:
image: itzg/mc-monitor
command: export-for-prometheus
@@ -67,7 +65,7 @@ services:
depends_on:
- mc
networks:
- mechanicalnet
- host
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.1
volumes:
@@ -76,7 +74,7 @@ services:
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- mechanicalnet
- host
prometheus:
image: prom/prometheus
ports:
@@ -88,7 +86,7 @@ services:
- monitor
- minecraft-exporter
networks:
- mechanicalnet
- host
minecraft-exporter:
build:
context: ./minecraft-exporter
@@ -104,12 +102,12 @@ services:
depends_on:
- mc
networks:
- mechanicalnet
- mechanihostcalnet
volumes:
mechanical-neoforge: {}
world: {}
prometheus-tsdb: {}
grafana-lib: {}
networks:
mechanicalnet:
driver: bridge
#networks:
# mechanicalnet:
# driver: bridge