mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
feat(status-page): add public status page at status.mana.how
- scripts/generate-status-page.sh: Shell-Script das VictoriaMetrics abfragt und eine statische HTML-Statusseite generiert (probe_success + response times) - docker-compose.macmini.yml: mana-status-gen Container (Alpine, jq, curl) schreibt alle 60s nach /Volumes/ManaData/landings/status/ - docker/nginx/landings.conf: status.mana.how vHost mit Cache-Control: no-store - cloudflared-config.yml: status.mana.how → localhost:4400 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
504f77a60c
commit
d044afec2f
4 changed files with 421 additions and 0 deletions
|
|
@ -1710,6 +1710,31 @@ services:
|
|||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
status-page-gen:
|
||||
image: alpine:3.20
|
||||
container_name: mana-status-gen
|
||||
restart: always
|
||||
mem_limit: 32m
|
||||
depends_on:
|
||||
victoriametrics:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
VICTORIAMETRICS_URL: http://victoriametrics:9090
|
||||
OUTPUT_FILE: /output/index.html
|
||||
volumes:
|
||||
- ./scripts/generate-status-page.sh:/generate.sh:ro
|
||||
- /Volumes/ManaData/landings/status:/output
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
apk add --no-cache curl jq > /dev/null 2>&1
|
||||
mkdir -p /output
|
||||
while true; do
|
||||
sh /generate.sh || echo "$(date '+%H:%M:%S') Fehler beim Generieren"
|
||||
sleep 60
|
||||
done
|
||||
|
||||
blackbox-exporter:
|
||||
image: prom/blackbox-exporter:v0.25.0
|
||||
container_name: mana-mon-blackbox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue