Skip to content
floppy007Public

About

Selbstgehostetes Server-Dashboard in PHP: zeigt Webanwendungen und Docker-Container mit Live-Status

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

webdash

webdash

Selbstgehostetes Server-Dashboard in PHP, nativ oder als Docker-Container. Die Anwendung steckt in .dashboard/app.php; die index.php im Webroot lädt sie nur.

Self-hosted server dashboard in PHP, native or as a Docker container. The application lives in .dashboard/app.php; the index.php in the web root only loads it.

Screenshots

Dashboard Einstellungen / Settings
Dashboard Settings

Zusatzdokumentation


Deutsch

Was ist webdash?

webdash zeigt die Webanwendungen und Dienste eines Servers auf einer Startseite. Im Docker-Modus erkennt es laufende Container automatisch, im Normal-Modus durchsucht es ein Verzeichnis nach Projekten. Weitere URLs lassen sich von Hand hinzufügen. Jede Kachel zeigt den Live-Status (Online/Offline/Fehler) und öffnet die Anwendung per Klick.

Wer mehrere Webanwendungen, Container oder Dienste auf einem Server betreibt, muss sich so keine IPs und Ports merken. Gedacht ist webdash als Startseite für Homeserver, Unraid, NAS oder Entwicklungsumgebungen.

Features

  • Docker-Modus: erkennt Container über den Docker-Socket, anpassbar per Labels, per Schalter ein- und ausblendbar
  • Verzeichnis-Scan: findet Webanwendungen automatisch und zeigt ihren Live-Status, per Schalter ein- und ausblendbar
  • Manuelle Links: eigene URLs mit Health-Check
  • Projekt-Logos: getrennte Logos für Dark- und Light-Mode pro Projekt, Upload per Drag & Drop
  • Hintergrundbild: mitgelieferte Wallpaper (Hell/Dunkel) oder eigenes Bild, mit Reglern für Helligkeit und Glaseffekt
  • System-Monitoring: CPU, RAM, Festplatte, Dienste-Status
  • Benutzerverwaltung: mehrere Admin-Benutzer anlegen, bearbeiten und löschen (gespeichert in config.json)
  • SMTP: E-Mail-Versand konfigurierbar, Passwort-Zurücksetzung per E-Mail
  • Admin-Panel: Projekte, Benutzer, Logos und SMTP-Einstellungen bearbeiten
  • Setup-Wizard: geführte Ersteinrichtung (Docker vereinfacht, Bare-Metal vollständig)
  • Auto-Update direkt im Admin-Panel
  • Optionale Google-Suchleiste in der Benutzeransicht, in den Einstellungen aktivierbar
  • Dark- und Light-Theme, umschaltbar
  • Oberfläche auf Deutsch und Englisch
  • XML-Template für Unraid Community Apps

Installation

Variante 1: Docker (empfohlen für Unraid / NAS)

services:
  webdash:
    image: floppy001/webdash:latest
    container_name: webdash
    ports:
      - "8080:80"
    environment:
      - WEBDASH_DOCKER_MODE=true
      #- WEBDASH_HOST_IP=192.168.1.100  # Optional: Ziel-Host fuer IP:PORT-Links
      #- WEBDASH_DOCKER_HEALTH_MODE=state # state|http|off
      #- WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS=false # Fallback auf interne Ports erlauben
      #- WEBDASH_HOSTNAME=mein-server    # Optional: Anzeigename statt Container-ID
      #- WEBDASH_SCAN_DIR=/sites         # Optional: zusätzlich Verzeichnis scannen
    volumes:
      - webdash-data:/var/www/html/.dashboard
      - /var/run/docker.sock:/var/run/docker.sock:ro
      #- /mnt/user/appdata/sites:/sites:ro # Optional: Host-Verzeichnis mit Webanwendungen
    restart: unless-stopped

volumes:
  webdash-data:
docker compose up -d

Dashboard öffnen: http://SERVER-IP:8080

Docker-Umgebungsvariablen
Variable Beschreibung Pflicht
WEBDASH_DOCKER_MODE true aktiviert Docker-Modus (Container statt Verzeichnisse) Ja
WEBDASH_HOST_IP Ziel-Host für automatisch gebaute IP:PORT-Links Optional
WEBDASH_DOCKER_HEALTH_MODE state = Docker-Status, http = echter HTTP-Check, off = nur State ohne Reachability Optional
WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS true erlaubt Fallback auf nicht veröffentlichte Container-Ports Optional
WEBDASH_HOSTNAME Anzeigename im Dashboard (Default: System-Hostname) Optional
WEBDASH_SCAN_DIR Zusätzliches Verzeichnis scannen (+ Volume-Mount nötig) Optional
Container per Label anpassen
docker run -d \
  --label webdash.name="Meine App" \
  --label webdash.icon="🎮" \
  --label webdash.description="Beschreibung der App" \
  --label webdash.url="http://{HOST_IP}:3000" \
  --label webdash.host="app.example.com" \
  --label webdash.scheme="https" \
  --label webdash.path="/" \
  --label webdash.hidden=true \
  nginx
Label Beschreibung
webdash.name Anzeigename (statt Container-Name)
webdash.icon Emoji-Icon (Default: 🐳)
webdash.description Beschreibungstext
webdash.url Volle Ziel-URL, höchste Priorität ({HOST_IP} wird ersetzt)
webdash.host Expliziter Ziel-Host oder Domain für die App
webdash.scheme http oder https für webdash.host / webdash.port
webdash.path Optionaler Pfad, z.B. /app
webdash.port Expliziter Ziel-Port statt Auto-Erkennung
webdash.hidden Container im Dashboard ausblenden bei true, 1, yes oder on (Groß- und Kleinschreibung egal). Jeder andere Wert, auch false oder 0, blendet nicht aus

Hinweise:

  • Ohne webdash.url, webdash.host oder Traefik-Router-Label verlinkt webdash nur veröffentlichte Host-Ports.
  • Nicht veröffentlichte interne Container-Ports werden standardmäßig nicht mehr verlinkt, weil der Browser sie meist nicht erreicht.
  • Bei Reverse-Proxy- oder Domain-Setups webdash.url oder webdash.host setzen. Hinter Traefik reichen meist die vorhandenen Router-Labels (siehe unten).

Reihenfolge der Link-Ermittlung: webdash.url, dann webdash.host (mit webdash.port, webdash.scheme, webdash.path), dann Traefik-Router-Label, dann webdash.port, dann der erste veröffentlichte Host-Port, zuletzt interne Container-Ports (nur mit WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS=true).

Traefik-Labels

Hat ein Container Traefik-Router-Labels und weder webdash.url noch webdash.host, baut webdash den Link aus der Router-Regel:

docker run -d \
  --label 'traefik.http.routers.meineapp.rule=Host(`app.example.com`) && PathPrefix(`/app`)' \
  --label traefik.http.routers.meineapp.entrypoints=websecure \
  --label traefik.http.routers.meineapp.tls=true \
  nginx

Ergibt den Link https://app.example.com/app.

Label Auswertung
traefik.http.routers.<name>.rule Host(`...`) liefert den Host. Bei mehreren Host(...) in einer Regel (z. B. mit ||) gilt das erste. Mehrere Hosts in einem einzigen Host(...) erkennt webdash nicht. Regeln ohne Host(...) werden übersprungen. PathPrefix(`...`) wird als Pfad angehängt, / allein ergibt keinen Pfad
traefik.http.routers.<name>.tls true (Groß- und Kleinschreibung egal) ergibt https
traefik.http.routers.<name>.entrypoints Enthält der Wert websecure, ergibt das ebenfalls https; sonst http

Hat ein Container mehrere Router, gilt der erste mit Host(...) in der Reihenfolge, in der die Docker-API die Labels liefert. Andere Regelteile (z. B. HostRegexp, Path, Headers) und Ports aus Traefik-Services wertet webdash nicht aus. Für einen bestimmten Router oder Port webdash.url setzen.

Variante 2: Installations-Wizard (Bare-Metal)

  1. install.php auf den Server herunterladen:
    curl -L https://raw.githubusercontent.com/floppy007/webdash/main/install.php -o /var/www/install.php
  2. Im Browser http://dein-server/install.php öffnen.
  3. Der Wizard prüft die Voraussetzungen und installiert webdash.
  4. Nach der Installation install.php löschen.

Variante 3: Manuelle Installation

mkdir -p /var/www/.dashboard
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/index.php -o /var/www/index.php
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/.dashboard/app.php -o /var/www/.dashboard/app.php
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/.htaccess -o /var/www/.htaccess

chown -R www-data:www-data /var/www/.dashboard

Ersteinrichtung

Beim ersten Aufruf fragt der Setup-Wizard Benutzername, Passwort und optional eine E-Mail-Adresse für die Passwort-Zurücksetzung ab. Die Konfiguration liegt in .dashboard/config.json und lässt sich jederzeit im Admin-Panel ändern.

Voraussetzungen

Docker: Docker und Docker Compose

Bare-Metal:

  • PHP 8.1 oder höher
  • Apache mit mod_rewrite
  • PHP-Extension curl
  • Schreibrechte für .dashboard/

Hinweise (Bare-Metal)

  • index.php muss im DocumentRoot (oder VirtualHost-Verzeichnis) liegen
  • AllowOverride All muss für das Verzeichnis aktiviert sein
  • mod_rewrite muss aktiviert sein (a2enmod rewrite && systemctl restart apache2)

Reverse Proxy (HTTPS)

webdash liefert nur HTTP aus. Für den internen Einsatz auf Homeservern und im LAN reicht das. Für externen Zugriff über HTTPS einen Reverse Proxy davorschalten (z. B. nginx, Caddy, Traefik). webdash wertet den Header X-Forwarded-Proto aus und erzeugt Links mit dem passenden Protokoll.

Beispiel nginx:

server {
    listen 443 ssl;
    server_name dash.example.com;

    ssl_certificate     /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Update

Docker: neues Image ziehen und Container neu starten:

docker compose pull && docker compose up -d

Bare-Metal: im Admin-Panel unter Einstellungen → Update prüfen klicken. Die alten Dateien werden als .bak gesichert.


English

What is webdash?

webdash shows the web applications and services on a server on one start page. In Docker mode it discovers running containers automatically; in normal mode it scans a directory for projects. You can also add URLs by hand. Each tile shows the live status (Online/Offline/Error) and opens the application when clicked.

If you run several web apps, containers or services on one server, you no longer need to remember IPs and ports. webdash is meant as a start page for home servers, Unraid, NAS or development environments.

Features

  • Docker mode: discovers containers via the Docker socket, customizable with labels, can be shown or hidden with a toggle
  • Directory scan: finds web applications automatically and shows their live status, can be shown or hidden with a toggle
  • Manual links: custom URLs with health checks
  • Project logos: separate logos for dark and light mode per project, uploaded by drag & drop
  • Background image: bundled wallpapers (light/dark) or your own upload, with sliders for brightness and glass effect
  • System monitoring: CPU, RAM, disk, service status
  • User management: create, edit and delete multiple admin users (stored in config.json)
  • SMTP: configurable email sending, password reset by email
  • Admin panel: edit projects, users, logos and SMTP settings
  • Setup wizard: guided first-run setup (simplified for Docker, full for bare metal)
  • Auto-update from the admin panel
  • Optional Google search bar in the user view, enabled in settings
  • Dark and light theme, switchable
  • German and English interface
  • XML template for Unraid Community Apps

Installation

Option 1: Docker (recommended for Unraid / NAS)

services:
  webdash:
    image: floppy001/webdash:latest
    container_name: webdash
    ports:
      - "8080:80"
    environment:
      - WEBDASH_DOCKER_MODE=true
      #- WEBDASH_HOST_IP=192.168.1.100  # Optional: target host for IP:PORT links
      #- WEBDASH_DOCKER_HEALTH_MODE=state # state|http|off
      #- WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS=false # allow fallback to internal ports
      #- WEBDASH_HOSTNAME=my-server      # Optional: display name instead of container ID
      #- WEBDASH_SCAN_DIR=/sites         # Optional: also scan a directory
    volumes:
      - webdash-data:/var/www/html/.dashboard
      - /var/run/docker.sock:/var/run/docker.sock:ro
      #- /mnt/user/appdata/sites:/sites:ro # Optional: host directory with web apps
    restart: unless-stopped

volumes:
  webdash-data:
docker compose up -d

Open the dashboard at http://SERVER-IP:8080.

Docker environment variables
Variable Description Required
WEBDASH_DOCKER_MODE true enables Docker mode (containers instead of directories) Yes
WEBDASH_HOST_IP Target host for automatically built IP:PORT links Optional
WEBDASH_DOCKER_HEALTH_MODE state = Docker state, http = real HTTP reachability check, off = state only Optional
WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS true allows fallback to non-published container ports Optional
WEBDASH_HOSTNAME Display name in dashboard (default: system hostname) Optional
WEBDASH_SCAN_DIR Also scan a directory for web apps (requires volume mount) Optional
Customize containers with labels
docker run -d \
  --label webdash.name="My App" \
  --label webdash.icon="🎮" \
  --label webdash.description="App description" \
  --label webdash.url="http://{HOST_IP}:3000" \
  --label webdash.host="app.example.com" \
  --label webdash.scheme="https" \
  --label webdash.path="/" \
  --label webdash.hidden=true \
  nginx
Label Description
webdash.name Display name (instead of container name)
webdash.icon Emoji icon (default: 🐳)
webdash.description Description text
webdash.url Full target URL, highest priority ({HOST_IP} is replaced)
webdash.host Explicit target host or domain for the app
webdash.scheme http or https for webdash.host / webdash.port
webdash.path Optional path, e.g. /app
webdash.port Explicit target port instead of auto-detection
webdash.hidden Hides the container in the dashboard for true, 1, yes or on (case-insensitive). Any other value, including false or 0, does not hide it

Notes:

  • Without webdash.url, webdash.host or a Traefik router label, webdash only links published host ports.
  • Non-published internal container ports are no longer linked by default, because the browser usually cannot reach them.
  • Reverse proxy or domain-based setups should set webdash.url or webdash.host. Behind Traefik, the existing router labels are usually enough (see below).

Link resolution order: webdash.url, then webdash.host (with webdash.port, webdash.scheme, webdash.path), then Traefik router labels, then webdash.port, then the first published host port, and finally internal container ports (only with WEBDASH_DOCKER_ALLOW_PRIVATE_PORTS=true).

Traefik labels

If a container has Traefik router labels and neither webdash.url nor webdash.host, webdash builds the link from the router rule:

docker run -d \
  --label 'traefik.http.routers.myapp.rule=Host(`app.example.com`) && PathPrefix(`/app`)' \
  --label traefik.http.routers.myapp.entrypoints=websecure \
  --label traefik.http.routers.myapp.tls=true \
  nginx

This results in the link https://app.example.com/app.

Label How it is used
traefik.http.routers.<name>.rule Host(`...`) provides the host. If a rule contains several Host(...) (e.g. joined with ||), the first one is used. Several hosts inside a single Host(...) are not recognized. Rules without Host(...) are skipped. PathPrefix(`...`) is appended as the path; / alone adds no path
traefik.http.routers.<name>.tls true (case-insensitive) results in https
traefik.http.routers.<name>.entrypoints If the value contains websecure, that also results in https; otherwise http

If a container has several routers, the first one with Host(...) wins, in the order the Docker API returns the labels. Other rule parts (e.g. HostRegexp, Path, Headers) and ports from Traefik services are not evaluated. Set webdash.url to pick a specific router or port.

Option 2: Installation wizard (bare metal)

  1. Download install.php to your server:
    curl -L https://raw.githubusercontent.com/floppy007/webdash/main/install.php -o /var/www/install.php
  2. Open http://your-server/install.php in your browser.
  3. The wizard checks the requirements and installs webdash.
  4. Delete install.php after installation.

Option 3: Manual installation

mkdir -p /var/www/.dashboard
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/index.php -o /var/www/index.php
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/.dashboard/app.php -o /var/www/.dashboard/app.php
curl -L https://raw.githubusercontent.com/floppy007/webdash/main/.htaccess -o /var/www/.htaccess

chown -R www-data:www-data /var/www/.dashboard

First-run setup

On first visit, the setup wizard asks for a username, a password and optionally an email address for password resets. The configuration is stored in .dashboard/config.json and can be changed at any time in the admin panel.

Requirements

Docker: Docker and Docker Compose

Bare metal:

  • PHP 8.1 or higher
  • Apache with mod_rewrite
  • PHP extension curl
  • Write permissions for .dashboard/

Notes (bare metal)

  • index.php must be in DocumentRoot (or VirtualHost directory)
  • AllowOverride All must be enabled for the directory
  • mod_rewrite must be active (a2enmod rewrite && systemctl restart apache2)

Reverse proxy (HTTPS)

webdash serves HTTP only, which is enough for internal use on home servers and LANs. For external access over HTTPS, put a reverse proxy in front of it (e.g. nginx, Caddy, Traefik). webdash reads the X-Forwarded-Proto header and generates links with the matching protocol.

Example nginx:

server {
    listen 443 ssl;
    server_name dash.example.com;

    ssl_certificate     /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Update

Docker: pull the new image and restart:

docker compose pull && docker compose up -d

Bare metal: in the admin panel, go to Settings → Check for updates. Old files are backed up as .bak.


License

MIT License with Attribution Clause. Free to use, modify and use commercially.

The copyright notice in the footer ("© Comnic-IT" with link) must not be removed or modified.

Copyright (c) Florian Hesse / Comnic-IT | info@comnic-it.de

See LICENSE for details.

About

Selbstgehostetes Server-Dashboard in PHP: zeigt Webanwendungen und Docker-Container mit Live-Status

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages