Installation
Rather have it done for you? Give an AI assistant the assistant guide.
Labwereld runs as a single container that only reads your existing services. There is no database; the only writable place is /data (measurement history).
You need Docker with Compose (v2). The image builds in a few seconds on your own machine, on amd64 and arm64 (including a Raspberry Pi or a Mac with Apple silicon), and only uses Python's standard library.
The user interface is in English and Dutch: it follows your browser, every page has an NL · EN switch, and ?lang=en forces English. Page names you will meet: /status/ (connector status), /beheer/ (settings).
1. Try the demo
From a release archive:
tar xzf labwereld-0.3.0.tar.gz && cd labwereld-0.3.0
docker compose up -d --build
Open http://localhost:8787. Without a configuration you see a fictional environment (config/demo.toml); press s in a style to play an event. /status/ shows the sources, /beheer/ the configuration.
Is Docker running on another machine than your browser? compose.yaml only publishes on 127.0.0.1 by default. Change "127.0.0.1:8787:8787" to "8787:8787", open http://<host>:8787 and set an admin token as soon as you use your own configuration (see 3). Do not expose Labwereld to the internet.
2. Connect your own environment
One source is enough. You do not need to have or connect everything listed below. Start with what you already run; whatever is not there, Labwereld simply leaves out, and
/status/tells you what is skipped. You can always add a source later.
| If you have… | you see… |
|---|---|
| Proxmox VE | your hypervisors and VMs/containers with cpu, memory, network and tasks; a complete world even without other sources |
| Proxmox Backup Server | backups per guest, with their age (the cargo ship in Station) |
| another backup script (restic, Borg, rsync, …) | those backups too, via a small JSON file the script writes (open backup status) |
| Docker | the containers of a host, with state, health and restarts |
| Prometheus with node_exporter | machines and their measurements, including disk temperature (with smartctl_exporter or hwmon) |
| Zabbix | hosts, measurements, alarms and (with the right items) backups and tunnels |
| OPNsense | internet traffic per site and WireGuard tunnels |
| UniFi | your network devices and the number of clients |
| Plex or Jellyfin | what is playing, in Station's cinema |
| Paperless-ngx | new scans flying to the archive as sheets of paper |
Proxmox alone is a good start; Zabbix is not required.
Quickest: open /beheer/ in the running demo. Fill in your sites and sources; the page produces labwereld.toml, labwereld.env and compose.yaml plus a step-by-step plan for the tokens. It never accepts secrets and sends nothing to the server. Put the files in ./labwereld/ and restart. You can also do it by hand:
Create
./labwereld/next tocompose.yamland copyconfig/voorbeeld.tomlto./labwereld/labwereld.toml.Add your sites (
[[site]]with IP ranges) and the sources you have. You do not need to describe nodes: they are discovered.For every source you connect, create a token with the minimal right and put it in a file in
./labwereld/(see connectors.html):Source What you need Proxmox VE API token with role PVEAuditoron/Proxmox Backup Server API token with role DatastoreAuditon/datastoreOpen backup status no token: a directory with status files in ./labwereld/, or an address Labwereld reads with GET (optionally a bearer token)Docker a docker socket proxy with read-only access (no token) OPNsense a dedicated user with only the read rights from connectors.html, plus an API key Prometheus read access to /api/v1/query(often no token needed)Zabbix user with read access to the host groups; role allowing only host.get,item.get,problem.get,trigger.get,proxy.getUniFi local Network API key Plex the bundled Plex relay on the Plex host (the token stays there), or a Tautulli API key; Zabbix items also work Jellyfin a Jellyfin API key (Jellyfin has no read-only keys; Labwereld only makes GET calls) Paperless-ngx API token of a user with only View on documents (and tasks); see setting up documents Put URLs and token paths that are not in the TOML in
./labwereld/labwereld.env, for example:LABWERELD_SOURCE=zabbix ZABBIX_API_URL=https://zabbix.example.lan/api_jsonrpc.php ZABBIX_API_TOKEN_FILE=/config/zabbix-token UNIFI_API_URL=https://192.168.1.1/proxy/network/integrations/v1 UNIFI_SITE_ID=<site-id> UNIFI_API_KEY_FILE=/config/unifi-keyToken files: readable only by uid
10001(chown 10001 file; chmod 0400 file). On SELinux systems:chcon -R -t container_file_t labwereld/.Run
docker compose up -dand check/status/: every source should report OK. An error (FOUT) shows the source's message.
3. Changing things later
Open /beheer/. The page starts from your current configuration and covers sites, links, sources, backups and general settings. On the right you see what changes: a diff per file (comments and formatting of your own file are kept), buttons to copy or download, and a step-by-step plan listing token files that are still missing. Your draft is kept in the browser until you discard it or until it has been loaded.
The files on the host remain the source of truth: Labwereld never changes anything itself. The collector does notice within 5 s that labwereld.toml or labwereld.env has changed. It loads a valid new configuration right away by restarting itself within the same process. No container restart is needed, and open pages reconnect by themselves. If the new configuration is invalid, the old one stays active and the error is shown at the top of /status/ and /beheer/.
If the configuration is baked into the image (your own config/labwereld.toml without LABWERELD_CONFIG), /beheer/ says so: replace the file in the repository and let your CI deploy it, or move it to /config with LABWERELD_CONFIG=/config/labwereld.toml.
GET /api/config returns the current configuration for the settings page:
- the TOML, with values that look like secrets replaced by
<geheim, niet getoond>("secret, not shown"); - for every Labwereld environment variable its value (for tokens only whether it is set);
- for every token file whether it exists and what its permissions are, never its contents.
This does include the addresses of your sources. That is why, with your own configuration, /beheer/ only opens with an admin token; in the demo there is nothing to protect and it stays open. Set a token like this:
openssl rand -hex 24 > labwereld/admin-token
chown 10001 labwereld/admin-token && chmod 0400 labwereld/admin-token
echo LABWERELD_ADMIN_TOKEN_FILE=/config/admin-token >> labwereld/labwereld.env
It is active within 5 s. /beheer/ asks for the token once and keeps it only in that browser tab; the collector reads the file on every request, so you can replace it without a restart. Without a (usable) token file /api/config returns 403 and the settings page is off, with an explanation on /beheer/. A token is at least 16 characters. To switch it off entirely: [beheer] enabled = false in labwereld.toml; the route then returns 404. An invalid new configuration is still shown on /status/ without a token (via GET /api/reload).
Time zone and location
compose.yaml sets TZ (Europe/Amsterdam by default). Put your homelab's time zone there: Station lets day and night follow the real sun, at the location of the city in the zone name. For more precision use LABWERELD_LAT and LABWERELD_LON (degrees, e.g. 52.1 and 5.1). Without TZ, Station estimates the location from your browser's time zone.
DNS
Labwereld remembers DNS answers for 5 minutes, so sources do not look a name up again on every request; without an IPv6 route it only asks for IPv4 (A). Set with LABWERELD_DNS_CACHE_S (seconds; 0 = off).
Security
- All connectors only make read calls; secrets live in files, not in the configuration or the browser.
- The world model contains host names and topology. Do not expose Labwereld to the internet; use it on your LAN or via a VPN, optionally behind a reverse proxy with access control.
- The container runs as non-root, with a read-only file system and without capabilities.
- There are no write routes.
/api/configshows the configuration without secrets, only with the admin token, and can be switched off with[beheer] enabled = false. - The admin token is sent with every request from
/beheer/. Over plain HTTP it can be intercepted: use Labwereld on your own network, or put a reverse proxy with HTTPS in front of it.
Updating
Unpack the new archive next to the old one, move your labwereld/ folder (configuration and tokens) and any changes to compose.yaml across, and run docker compose up -d --build there. The measurement history is kept in the volume labwereld_labwereld_data: the project name is fixed in compose.yaml, so the folder name does not matter.
Which version is running? GET /api/healthz reports version.