Skip to content

Homelable: new service - #448

Merged
crypt0rr merged 4 commits into
mainfrom
t3/homelable-deploy
Nov 30, 2026
Merged

crypt0rr merged 4 commits into
mainfrom
t3/homelable-deploy

Conversation

@jackspiering

@jackspiering jackspiering commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds Homelable, a canvas for mapping and documenting a homelab, with network scans and live status checks of each device. The stack is adapted from the upstream docker-compose.prebuilt.yml and installation guide.

  • Two containers in the sidecar's network. application (app-homelable) runs the backend (ghcr.io/pouzor/homelable-backend): API, nmap scanner, and status checks. frontend (app-homelable-frontend) runs the nginx front end (ghcr.io/pouzor/homelable-frontend). Both use network_mode: service:tailscale, so BACKEND_UPSTREAM=127.0.0.1:8000 points nginx at the backend over loopback. Serve forwards to 127.0.0.1:80.
  • CORS_ORIGINS from SERVICE and TAILNET_NAME. The backend accepts the live status WebSocket only from an origin in CORS_ORIGINS (origin_is_allowed in backend/app/core/security.py), so the stack builds https://<SERVICE>.<TAILNET_NAME>.ts.net, as Outline does.
  • Required secrets. SECRET_KEY has no default upstream (the backend does not start without it). AUTH_PASSWORD_HASH is required too: with an empty hash every login fails, and the stack does not ship the upstream admin / admin hash. The README and .env give a docker run command that asks for the password with getpass and prints the bcrypt hash, and say to single-quote it.
  • NET_RAW on the backend for the ping checks, as upstream.
  • Health checks. Neither image defines one. The backend uses the upstream curl check of /api/v1/health. The frontend uses wget --spider on /.
  • README. Deviations cover the second container, the origin check, no MAC addresses (upstream's host-network option is not possible with a sidecar), settings passed under environment instead of env_file, no default password, and the left-out MCP server. Configuration covers release tags, LAN access with a CORS_ORIGINS override, and the integrations.
  • Root README. Row under "Monitoring and analytics", between Grafana and Logchef.

Related Issues

Verification

  • docker compose config --quiet from services/homelable, with dummy values for required variables (exit 0, no "variable is not set" warnings). Without values, Compose stops with Set SECRET_KEY in .env and Set TAILNET_NAME in .env. check-service-list.sh and check-sidecar.sh pass.
  • The stack started, Tailscale is healthy, and the service is reachable through the tailnet. I tested from a copy outside the repository, with a test auth key, on one device. All three containers became healthy, and I ran each health command with docker exec (exit 0). Serve was tested from inside the namespace with curl --resolve <name>.<tailnet>.ts.net:443:<tailscale-ip>, with a valid certificate (ssl_verify_result=0). /, the JS and CSS bundles, an SPA route, /api/v1/health, and /openapi.json returned 200. nginx rendered proxy_pass http://127.0.0.1:8000.
  • The main function of the service works, and its data survives a restart.
    • Login through Serve worked with the hash that the documented docker run ... getpass command produced, single-quoted in .env. A wrong password got 401, and requests without a token got 401.
    • I created a node with a ping check of 127.0.0.1. The status checker marked it online, so NET_RAW works.
    • Live status WebSocket through Serve: with the tailnet origin, the connection stayed open and received a status broadcast. With another origin, the backend closed it with code 1008.
    • I ran a scan restricted to 127.0.0.1/32, so no real network was scanned. nmap found nginx on 80 and Uvicorn on 8000.
    • The node and the scan settings survived docker compose up -d --force-recreate and docker compose restart, and the device kept its name. TZ takes effect in both containers.
  • rumdl check --config .markdownlint.yml . (0.3.0, as pinned) on the whole repository, and git diff --check origin/main: both clean.

Not verified:

  • I did not open the web interface in a browser. The Scan Network wording under "First run" comes from the upstream README.
  • I tested LAN access with a loopback-bound port (127.0.0.1:<port>:80) and the CORS_ORIGINS override from the README, not with 0.0.0.0:80. With the override, the page, the login, and the WebSocket worked over that port. An origin missing from the list was closed with 1008.

Impact on existing users

  • None. This is a new stack.

Checklist

  • I have performed a self-review of my code and followed the templates structure.
  • I did not commit a working auth key, password, token, or other credential.
  • The service README uses the headings of the template, in the same order, and is up to date.
  • I added, removed, or renamed the service in the root README.md, in alphabetical order, or this PR does not change the list of services.

Additional Context

Add Homelable, a canvas for mapping and documenting a homelab with
network scans and live status checks, with a Tailscale sidecar.

The backend (application) and the nginx front end share the network of
the sidecar, so nginx reaches the API on 127.0.0.1:8000. CORS_ORIGINS is
built from SERVICE and TAILNET_NAME, because the backend accepts the
live status WebSocket only from a listed origin. SECRET_KEY and
AUTH_PASSWORD_HASH are required, instead of the upstream admin/admin
default. The optional MCP server is left out.
@jackspiering jackspiering added the new service request to add a new service label Nov 29, 2026
@jackspiering jackspiering self-assigned this Nov 29, 2026
@jackspiering
jackspiering marked this pull request as ready for review November 30, 2026 15:02
@crypt0rr
crypt0rr merged commit 9b41f31 into main Nov 30, 2026
2 checks passed
@crypt0rr
crypt0rr deleted the t3/homelable-deploy branch November 30, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new service request to add a new service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants