This commit is contained in:
Ubuntu
2024-04-01 17:55:52 +00:00
parent 74c68c2b28
commit 5eb49c3c18
2 changed files with 19 additions and 6 deletions

View File

@@ -30,7 +30,6 @@ services:
MOTD: "§l§cPatataPack§r"
ONLINE_MODE: "FALSE"
ALLOW_FLIGHT: "TRUE"
RCON_PASSWORD: ${RCON_PASSWORD}
OPS: |
Bailongo
Amimi
@@ -64,6 +63,7 @@ services:
- prometheus-tsdb:/prometheus
depends_on:
- monitor
- minecraft-exporter
grafana:
image: grafana/grafana-oss:${GRAFANA_VERSION:-8.3.3}
ports:
@@ -78,14 +78,17 @@ services:
build:
context: ./minecraft-exporter
environment:
RCON_HOST: localhost
RCON_HOST: 127.0.0.1
RCON_PORT: 25575
RCON_PASSWORD: ${RCON_PASSWORD}
FORGE_SERVER: True
ports:
- 9700:8000
- 9700:8000
volumes:
- ./world:/world:ro
- ../patata-data/world:/world:ro
depends_on:
- mc
volumes:
patata-data: {}
world: {}
prometheus-tsdb: {}
grafana-lib: {}

View File

@@ -7,3 +7,13 @@ scrape_configs:
- monitor:8080
- targets:
- cadvisor:8080
- job_name: minecraft
scrape_interval: 15s
scrape_timeout: 15s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- 127.0.0.1:9700
labels:
server_name: PatataPack server