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