Net
This commit is contained in:
@@ -2,15 +2,15 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
hostname: mechanical-web
|
||||||
container_name: mc-web-mechanical
|
container_name: mc-web-mechanical
|
||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ./web:/usr/share/nginx/html
|
- ./web:/usr/share/nginx/html
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
networks:
|
|
||||||
- host
|
|
||||||
mc:
|
mc:
|
||||||
|
hostname: mechanical-neoforge
|
||||||
image: ghcr.io/itzg/minecraft-server:java21-graalvm
|
image: ghcr.io/itzg/minecraft-server:java21-graalvm
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
@@ -39,8 +39,6 @@ services:
|
|||||||
ICON: http://mechanical.oier.ovh/pack/icon.png
|
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
|
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:
|
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
|
||||||
@@ -54,8 +52,6 @@ services:
|
|||||||
- ./dashboards:/etc/grafana/dashboards
|
- ./dashboards:/etc/grafana/dashboards
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- prometheus
|
||||||
networks:
|
|
||||||
- host
|
|
||||||
monitor:
|
monitor:
|
||||||
image: itzg/mc-monitor
|
image: itzg/mc-monitor
|
||||||
command: export-for-prometheus
|
command: export-for-prometheus
|
||||||
@@ -64,8 +60,6 @@ services:
|
|||||||
DEBUG: "true"
|
DEBUG: "true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mc
|
- mc
|
||||||
networks:
|
|
||||||
- host
|
|
||||||
cadvisor:
|
cadvisor:
|
||||||
image: gcr.io/cadvisor/cadvisor:v0.47.1
|
image: gcr.io/cadvisor/cadvisor:v0.47.1
|
||||||
volumes:
|
volumes:
|
||||||
@@ -73,8 +67,6 @@ services:
|
|||||||
- /var/run:/var/run:rw
|
- /var/run:/var/run:rw
|
||||||
- /sys:/sys:ro
|
- /sys:/sys:ro
|
||||||
- /var/lib/docker/:/var/lib/docker:ro
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
networks:
|
|
||||||
- host
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus
|
image: prom/prometheus
|
||||||
ports:
|
ports:
|
||||||
@@ -85,8 +77,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- monitor
|
- monitor
|
||||||
- minecraft-exporter
|
- minecraft-exporter
|
||||||
networks:
|
|
||||||
- host
|
|
||||||
minecraft-exporter:
|
minecraft-exporter:
|
||||||
build:
|
build:
|
||||||
context: ./minecraft-exporter
|
context: ./minecraft-exporter
|
||||||
@@ -101,8 +91,6 @@ services:
|
|||||||
- ../data/mechanical-neoforge/world:/world:ro
|
- ../data/mechanical-neoforge/world:/world:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- mc
|
- mc
|
||||||
networks:
|
|
||||||
- mechanihostcalnet
|
|
||||||
volumes:
|
volumes:
|
||||||
mechanical-neoforge: {}
|
mechanical-neoforge: {}
|
||||||
world: {}
|
world: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user