mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 10:21:24 +02:00
fix(status-page): use host network so container reaches VictoriaMetrics on localhost:9090
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bdf76cb24d
commit
f4713ec831
1 changed files with 6 additions and 6 deletions
|
|
@ -1715,11 +1715,11 @@ services:
|
|||
container_name: mana-status-gen
|
||||
restart: always
|
||||
mem_limit: 32m
|
||||
depends_on:
|
||||
victoriametrics:
|
||||
condition: service_healthy
|
||||
# host network: direkter Zugriff auf VictoriaMetrics via localhost:9090
|
||||
# (kein depends_on möglich mit network_mode: host)
|
||||
network_mode: host
|
||||
environment:
|
||||
VICTORIAMETRICS_URL: http://victoriametrics:9090
|
||||
VICTORIAMETRICS_URL: http://localhost:9090
|
||||
OUTPUT_FILE: /output/index.html
|
||||
volumes:
|
||||
- ./scripts/generate-status-page.sh:/generate.sh:ro
|
||||
|
|
@ -1728,10 +1728,10 @@ services:
|
|||
- sh
|
||||
- -c
|
||||
- |
|
||||
apk add --no-cache curl jq > /dev/null 2>&1
|
||||
apk add --no-cache curl jq
|
||||
mkdir -p /output
|
||||
while true; do
|
||||
sh /generate.sh || echo "$(date '+%H:%M:%S') Fehler beim Generieren"
|
||||
sh /generate.sh
|
||||
sleep 60
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue