From f207009efdd181bcd77c4ec0f1d541b6a75d88f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 17 Aug 2026 18:46:51 +0200 Subject: [PATCH] add system and traefik widgets to pulsenode; enable Traefik API - traefik/compose.yml: flip --api.dashboard=true so Traefik's internal API is reachable. No entrypoint named "traefik" is defined, so Traefik auto-creates its default one on :8080 - not published to the host (only 80/443 are), so it's reachable only from other containers on falcon_network, i.e. exactly (and only) pulsenode. - pulsenode/config.yml: adds a system widget and swaps the plain Traefik docker card for the real traefik widget (router/entrypoint/ middleware view via that now-enabled API), both at the top of Services. Verified locally before deploying: a plain container (no pid: host, no /proc,/sys mounts) already reports host-accurate CPU count, memory total, and root disk usage via systeminformation, since Docker doesn't namespace /proc/stat, /proc/meminfo, or overlayfs df by default. No privilege escalation needed for the system widget after all - tested side by side against the real host's nproc/free/df output. Also confirmed the merged config.yml validates against the app's own zod schema, not just as YAML. --- pulsenode/config/config.yml | 13 ++++++------- traefik/compose.yml | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pulsenode/config/config.yml b/pulsenode/config/config.yml index 277880f..0a64a80 100644 --- a/pulsenode/config/config.yml +++ b/pulsenode/config/config.yml @@ -7,14 +7,13 @@ theme: groups: - name: Services widgets: - - type: docker + - type: system + interval: 5s + + - type: traefik name: Traefik - containerName: traefik - icon: traefik - interval: 10s - # No href: the dashboard is disabled (--api.dashboard=false). - # Swap for a `traefik` widget (router/entrypoint/middleware view) - # if the API gets enabled - see Traefik's --api.dashboard docs. + apiUrl: http://traefik:8080/api + interval: 15s - type: docker name: Coolify diff --git a/traefik/compose.yml b/traefik/compose.yml index 33c346a..8dd75ed 100644 --- a/traefik/compose.yml +++ b/traefik/compose.yml @@ -3,7 +3,7 @@ services: image: traefik:v3 container_name: traefik command: - - "--api.dashboard=false" + - "--api.dashboard=true" - "--ping=true" - "--log.level=INFO" - "--accesslog=true"