Homelab dashboard in a minimalist city-builder style – Proxmox, Beszel, Uptime Kuma, UniFi
4.2K
Your homelab as a small, living city – a self-hosted browser start page in a minimalist city-builder style. Proxmox clusters are factories, services are houses, switches are roundabouts, your reverse proxy is the city gate, and network traffic drives through the streets as cars. All graphics are original, flat SVG/canvas shapes.
docker run -d --name labtown --restart unless-stopped \
-p 8080:8080 -v labtown-data:/data -e TZ=Europe/Berlin \
techbygiusi/labtown:latest
Open http://<host>:8080/admin from your local network and add your integrations, or click
Objects → Create demo city to try it out with simulated data (a fresh instance starts empty, demo mode off). There is no login by default – the admin area is restricted to private networks (see below).
services:
labtown:
image: techbygiusi/labtown:latest
container_name: labtown
restart: unless-stopped # also needed for one-click restore of backups
ports:
- "8080:8080"
volumes:
- labtown-data:/data
environment:
TZ: "Europe/Berlin"
# AUTH_MODE: "oidc" # optional login via Pocket ID
# ADMIN_ALLOWED_NETS: "192.168.1.0/24" # who may use /admin
# ADMIN_URL: "https://labtown.example.com" # unlock /admin via your reverse proxy
# BASE_URL: "https://home.example.com"
# TRUST_PROXY: "loopback, linklocal, uniquelocal"
# LABTOWN_SECRET_KEY: "<long random string>"
volumes:
labtown-data:
Everything (integrations, objects, display, login, backups) is configured in the web UI. Environment variables are optional:
| Variable | Default | Meaning |
|---|---|---|
AUTH_MODE | setting, else none | none: admin without login, IP allowlist only. oidc: additional login via Pocket ID. When set, the mode can't be changed in the UI. |
ADMIN_ALLOWED_NETS | private networks | Comma-separated CIDRs/IPs allowed to use /admin. Default 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, ::1/128, fc00::/7, fe80::/10. |
ADMIN_URL | – | e.g. https://labtown.example.com: requests arriving through your reverse proxy on this host may use /admin from anywhere. Can also be set under Admin → Login. Protect it at the proxy (SSO) or enable Pocket ID. |
TRUST_PROXY | loopback, linklocal, uniquelocal | Proxies whose X-Forwarded-For is trusted (Express syntax). |
BASE_URL | – | Public URL, e.g. https://home.example.com or with a path https://example.com/labtown. |
LABTOWN_SECRET_KEY | – | Key for encrypting stored credentials. Without it, /data/secret.key is created on first start – back it up. |
TZ | UTC | Time zone (clock, schedules). |
PORT / DATA_DIR | 8080 / /data | Port inside the container, data directory. |
/data (SQLite database, key file, uploads, local backups).8080 (HTTP). Put it behind your reverse proxy for TLS.node (UID 1000). For bind mounts: chown -R 1000:1000 ./data.GET /api/health (returns the version).Add them under Admin → Integrations (or in the setup wizard at /setup). Every integration has on/off, URL,
credentials, Test connection, a polling interval and Don't verify TLS for self-signed certificates. All
access is read-only; credentials are stored encrypted and never leave the server. Afterwards, import objects
(clusters, nodes, monitors, switches with topology, the Pangolin gate) or link existing ones with live previews and
✨ auto-suggestions in the object editor.
pveum user add labtown@pve --comment "LabTown Dashboard"
pveum aclmod / -user labtown@pve -role PVEAuditor
pveum user token add labtown@pve dashboard --privsep 0
full-tokenid (e.g. labtown@pve!dashboard) and value – the secret, shown only once.labtown, realm pve), then API Tokens → Add
(user labtown@pve, ID dashboard). Either untick Privilege Separation or give the token itself the role
PVEAuditor on path / under Permissions → Add → API Token Permission.https://<pve-host>:8006, Token ID labtown@pve!dashboard, Secret; tick Don't verify TLS if
Proxmox uses its self-signed certificate.proxmox-backup-manager user create labtown@pbs
proxmox-backup-manager user generate-token labtown@pbs dashboard
proxmox-backup-manager acl update / Audit --auth-id labtown@pbs
proxmox-backup-manager acl update / Audit --auth-id 'labtown@pbs!dashboard'
https://<pbs-host>:8007, Token ID labtown@pbs!dashboard, Secret, usually Don't verify TLS.https://<kuma>/status/<slug>. Includes 24 h uptime.[email protected] with a password). LabTown signs
in through the PocketBase API (users, falling back to _superusers) and renews the token itself.http://beszel:8090), e-mail and password. Alternatively paste a PocketBase token.https://192.168.1.1), API key, usually Don't verify TLS.
Site is optional (default: first site). Gateway MAC only if the gateway isn't detected automatically.stat/sta, stat/device). Many
controllers don't accept the API key there – the connection test then says so; WAN, devices, port status and speed
still work.config/config.yml and restart Pangolin:
flags:
enable_integration_api: true
# optional, default port 3003:
# server:
# integration_port: 3003
http://<pangolin-host>:3003/v1 (or through your proxy, e.g.
https://api.example.com/v1; Swagger docs at …/v1/docs).GET /orgs, /org/{orgId}/sites, /org/{orgId}/resources and
/resource/{id}/targets.labtown) and a share (e.g. backup); the user needs read and write access.
Enable SMB2 or better SMB3 (Synology: Control Panel → File Services → SMB → Advanced → Max. protocol SMB3).//nas.local/backup (or //192.168.1.20/backup), subfolder
labtown, user and password (domain only if needed), SMB version SMB3, Force encryption if the NAS supports it.backup/labtown/.https://<your-labtown-address>/api/auth/callback (the Login page in LabTown shows the exact URL), enable
PKCE. Optionally restrict it to a group such as labtown-admins.docker exec labtown labtown-cli auth reset removes OIDC again (see CLI)./admin and the admin API only answer clients from ADMIN_ALLOWED_NETS – or requests
forwarded by a proxy in those networks for the configured admin URL (ADMIN_URL or Admin → Login). A spoofed
Host header sent straight to the container is not enough.AUTH_MODE=oidc.X-Forwarded-For so LabTown sees the real client IP.Local (/data/backups) and/or SMB at the same time (setup see above) – no volume mount, no privileged container.
Each backup is verified (size, checksum, read-back on SMB), old ones are removed by count or age, schedules
daily/weekly/cron, optional password encryption (AES-256). Restore with preview; LabTown restarts and applies it
(needs restart: unless-stopped).
docker exec labtown labtown-cli auth show # login mode, allowed networks, OIDC (secret masked)
docker exec labtown labtown-cli auth reset # remove OIDC, back to "none" (only when OIDC is active)
docker exec labtown labtown-cli recovery-link --base-url http://192.168.1.10:8080
docker exec labtown labtown-cli backup now
docker exec labtown labtown-cli backup list
docker exec labtown labtown-cli backup restore <file> [--location smb] [--password …] --yes
0.1.1, 0.1.2 … 0.1.199, then 0.2.0 … 0.2.199, then 0.3.0 and so on. Tags: <version> (e.g. 0.1.1),
<major.minor> (e.g. 0.1, always the newest patch) and latest. Images for linux/amd64 and linux/arm64.
0.2.0 – New admin area: sidebar instead of tabs (collapsible, burger menu below 900 px, status hints), pages use the full screen width (1/2/3 columns, equal-height cards), docked object and integration editors on wide screens, Branding as its own page, sticky save bar with Discard, illustrated empty states.
0.1.28 – Admin area: toggle switches instead of checkboxes, action buttons consistently on the right.
0.1.27 – Search suggestions and internal panel links also work via the admin URL behind a reverse proxy (e.g. Pangolin); manifest loaded with cookies (no CORS errors behind a login proxy).
0.1.26 – Bookmark suggestions only from object link URLs and your own entries (Pangolin domains removed); no "/" hint in the search bar.
0.1.25 – Bookmarks admin page with uniform field and button styling; Save at the bottom right.
0.1.24 – Detailed Ceph section (health with warnings, OSDs, monitors, managers, PGs, I/O, capacity, pools); search opens in a new tab with bookmark suggestions in a glass list (Tab to accept); bookmarks manageable in the admin area, objects with URLs and Pangolin resources added automatically.
0.1.23 – Host chimneys are slim round stacks again, still standing on the hall roof.
0.1.22 – Slim square brick chimneys standing on the hall roofs of Proxmox hosts (no more floating grey cylinders); smoke rises from the chimney mouth.
0.1.21 – Gateway/router port overview like on switches (WAN port in blue, linked devices), uplink/WAN throughput shown from the network's point of view, chimneys drawn as connected stacks, no more hover flicker on buildings, roundabouts and the city gate.
0.1.20 – No more notches or wedges in zone outlines (contour tracing + morphological closing), car parks follow the cluster's overall RAM utilisation (several car parks filled together), uplink ports shown in plain blue.
0.1.19 – Organic city: soft cluster zones (SDF hull, animated when dragging), river with varying width and sandy banks, optional lakes/hills/meadows, 2.5D buildings with roof types and sun shadows, warning beacon and offline barrier tape, parked cars per running VM/LXC, smooth drag & drop (lift, inertia, spring, Web-Worker preview, red invalid spots), clusters can be split across the river with bridges, new detail level and landscape settings.
0.1.18 – Natural forest edge (no rectangle), labels keep their distance to buildings when zooming in, straight short links (no S-wave at the gateway), curvier town streets.
0.1.17 – Winter look (snow cover, snow caps, icy water; ?snow=1 preview), fewer standard cars when there is real traffic and a car cap per roundabout, fixed street lamps at bridges.
0.1.16 – More compact small towns (main street ends at the last side street, no empty blocks), dead-end roundabouts removed, sites keep off the river, no trees in the water.
0.1.15 – Larger sites become small towns: main street with side streets, trees between the buildings, roundabout at the end. Site title inside the outline, outage barriers on the driveway, dropdown arrow back at the right edge.
0.1.14 – Organic district streets with small roundabouts in larger districts. Traffic scales with real data (also at a few kbit/s, at least one car per reachable building), no more overlapping cars, jams resolve. Dropdown arrow spacing, muted chips in dark mode, panel tables scroll with a slim themed scrollbar.
0.1.13 – New Home Assistant integration (power/energy sensors per object, sums per site). Detail panel: one combined overview from the most precise reachable source, no duplicates. Admin area dark at night. Panel tables without horizontal scrolling.
0.1.12 – Smooth junction and roundabout corners (no more small bumps at the curve ends).
0.1.11 – Far fewer traffic jams at roundabouts, roof windows on moving cars, more space next to the port status dots.
0.1.10 – Traffic passes through Pangolin/gateway stations, roundabout jams resolve, rounded headlights beneath the cars. More parking lots spread through districts, with parked cars by RAM usage. Access roads leave towards the switch. Cleaner junctions, regular windows, fixed river in the editor, better editor hit areas, readable clock at night.
0.1.9 – Fix: with a toll station or barrier on the map, roundabout rings, junctions and bridges went missing in 0.1.8. The ground layer is now drawn robustly.
0.1.8 – Checkpoints without a round plaza (cars turn smoothly at the station), status dot beside the station, new bridge look with slim curved stone parapets, building details stay inside their outline.
0.1.7 – Road markings stand still and never run into roundabouts. A gateway or Pangolin with only one connection is a checkpoint instead of a roundabout (gateway = toll station, Pangolin = road barrier). Bridges keep the normal road.
0.1.6 – Pangolin can be picked as upstream and moves in between automatically (gateway → Pangolin → factory or gateway → switch → Pangolin → factory). Cuter bridges; boats and river current glide smoothly and pass under bridges. Gear icon for settings, frosted-glass background behind open dialogs, one consistent close button everywhere (top right, centred X), icon field removed from the object editor, status dot on gateways, PBS: clear message when the token can't see any datastores (grant Audit to the user as well).
0.1.5 – Flexible topology: gateways, switches and gates get a multi-select "Connected here" (e.g. a gateway directly to several factory sites or buildings). Pangolin can sit before the gateway (city gate at the edge) or between a gateway/switch and selected factory sites or buildings, as its own node on the map. Compact dialogs on large screens, single dropdown arrow, tidier detail panel header.
0.1.4 – Fixed map rendering (road markings, cars and trees could vanish while zooming/panning). Pangolin 1.26:
correct pagination (page/pageSize, no limit), clear errors per HTTP status and a step-by-step connection test.
Custom scrollbars and dropdowns that follow the time of day, English file picker, search clear button, search engine
presets with automatic URL correction (e.g. google.com/%s), search hidden while editing the layout.
0.1.3 – Switch roundabouts show 4 / 5 / 6 status lights (small / medium / large) instead of one dot per port; the number lit is the share of active ports (e.g. 2 of 4 = 50 %). The dots never overlap.
0.1.2 – Admin URL: unlock /admin from outside via your reverse proxy (ADMIN_URL or Admin → Login). River
current is animated and never drawn over bridges; selected roads blend smoothly into roundabouts. UI fully in English. New instances start empty with demo mode off (single "No objects yet" hint on the
map; "Create demo city" turns demo mode on). Fixed the empty-state link being swallowed by the map, clouds piling up
in one spot. Removed the admin preview tab and the extra underline on the active tab.
0.1.1 – First public release. City map with organic layout and rounded road geometry, switches as roundabouts (UniFi ports, PoE, LACP, topology import), Pangolin city gate, Proxmox / PBS / Uptime Kuma / Beszel / UniFi / Pangolin integrations, detail panels with history, day & night, weather, branding, backups to SMB, optional Pocket ID login, smooth loading without jumps, compact header with centred search, animations throughout.
Content type
Image
Digest
sha256:bb88802eb…
Size
79 MB
Last updated
about 11 hours ago
docker pull techbygiusi/labtown