Files
p42.f-w/docker-compose.yml
guyg1474andClaude Opus 5.5 f16c8c73c6 Monitoring: Server-Auslastung über P42-S.M. mit Detailansicht und 2-Tage-Verlauf
- Neue Prüfart "Server-Auslastung (P42-S.M.)": Adresse + Token (Token bleibt
  im Backend, wird nie an den Browser gegeben)
- Karte zeigt CPU, RAM, vollste Platte, Load, Temperatur, Uptime
- Klick öffnet große Ansicht: Kacheln, Platten, Threads, Temperaturen,
  Netzwerk, Verlaufsdiagramme (6 h / 24 h / 2 Tage) mit Tooltip und Tabelle
- Hintergrund-Task speichert jede Minute einen Mittelwert (monitor_samples,
  2 Tage), unabhängig davon, ob die Seite offen ist
- Docker: zusätzlich im Netz p42, update-docker.sh legt es bei Bedarf an

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:22:48 +02:00

28 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
p42:
build: .
image: p42-dashboard
container_name: p42-dashboard
restart: unless-stopped
ports:
# Nur intern erreichbar: standardmäßig an 127.0.0.1 gebunden – dein nginx leitet auf
# http://127.0.0.1:${P42_PORT} weiter. Port/Adresse in .env änderbar (siehe .env.example).
- "${P42_BIND:-127.0.0.1}:${P42_PORT:-3000}:3000"
environment:
TZ: Europe/Berlin
# Anfragen kommen nur über nginx: dessen X-Forwarded-For/-Proto vertrauen
# (echte Client-IP für den Login-Schutz, HTTPS für sichere Cookies)
FORWARDED_ALLOW_IPS: "${P42_TRUSTED_PROXIES:-*}"
volumes:
# Datenbank + hochgeladene Bilder – bleiben bei Updates und Neubau erhalten
- ./data:/data
# Einstellungen (API-Keys, Wikipedia-Kontakt) – nur lesend
- ./config.json:/app/config.json:ro
# "p42": gemeinsames Netz mit P42-S.M. – dort ist der Agent unter http://p42-sm:9142 erreichbar
networks: [default, p42]
networks:
p42:
name: p42
external: true # legt deploy/update-docker.sh bei Bedarf an