A self-hosted home infrastructure: 33 Docker Compose stacks (84 containers) on a single Proxmox VE host, deployed by GitOps from a git repository, secrets in OpenBao, public access through a Pangolin tunnel with zero port-forwarding.
This repository is the public, sanitized mirror of the setup. Every compose file and script here is the one that runs,
with domains, LAN addresses, host ports and personal values replaced by placeholders (example.com, ${..._PORT},
192.0.2.x, *.lan). Secrets are never stored in git, they live in OpenBao.
INDEX.md - map of every file. legacy/ - the previous NixOS/ZimaOS-era setup, kept for reference.
- Architecture
- How a change gets deployed
- Security model
- Service matrix
- Storage and data protection
- Repository structure
- Documentation
Internet
│
▼
VPS: Pangolin (Traefik + Gerbil), TLS, identity-aware access
│ WireGuard tunnel, outbound from home; no open ports at home
▼
Proxmox VE host ─ ZFS pool "mainpool" (sanoid snapshots)
├─ VM docker Docker + Komodo Periphery, all 33 stacks
│ ├─ newt tunnel client (Pangolin site)
│ ├─ traefik-internal one router for LAN and internet, authentik forward-auth
│ ├─ authentik SSO for every app that supports OIDC
│ └─ 30 app stacks media, documents, notes, photos, dev, dashboards
├─ VM komodo Komodo Core: pulls the git repo, deploys changed stacks
├─ LXC bao OpenBao: all stack secrets, auto-unseal via AWS KMS
├─ LXC samba SMB shares on ZFS datasets, snapshots as "Previous Versions"
├─ LXC access second newt: a way into the admin UIs that survives a broken Docker VM
└─ VM mail Stalwart + Bulwark webmail, data on the only encrypted dataset;
public face: a small VPS (TCP pass-through in, Postfix out) over WireGuard
- Outside = inside. Every public route ends at the internal Traefik on the Docker VM, the same router the LAN uses. Who gets authentik in front of an app is decided in one table (gen.py).
- Separation by guest. Secrets (OpenBao), deployment control (Komodo) and workloads (Docker) sit in separate guests. Containers on the Docker VM are firewalled away from OpenBao; only the host-side renderer talks to it.
- Nothing calls in. Komodo polls git, Renovate runs in GitHub Actions, the tunnel is outbound. No webhook and no port on the home router.
Details: docs/architecture.md. Mail: infrastructure/mail/.
git push (or merged Renovate PR)
└─> Komodo procedure, every 5 min: DeployStackIfChanged for all stacks
├─ pre_deploy komodo-predeploy render .env from OpenBao (kv/stacks/<stack>)
├─ compose komodo-compose docker compose, secret values masked in all logs
└─ post_deploy komodo-postdeploy wait until every container is running, healthy and stable
(otherwise the deploy is marked failed)
secret changed in OpenBao
└─> komodo-bao-watch (timer, 5 min): compares rendered .env with OpenBao, redeploys that stack
- Images are pinned to version and digest. Renovate opens update PRs weekly; nothing merges on its own.
- Trivy compares every image a PR changes with the image it replaces and marks the PR red only when it brings in a fixable CRITICAL CVE the running image does not have. Findings that are already in production do not block a digest refresh.
Details and all scripts: docs/gitops-pipeline.md, platform/.
Edge Pangolin on a VPS: TLS, SSO + 2FA in front of admin UIs, no inbound ports at home;
CrowdSec bans scanners at the VPS (fail-open), Fail2Ban on the VPS's SSH
Routing one internal Traefik for LAN and internet; authentik forward-auth for apps without own login
Identity authentik (OIDC) for every app that supports it, local accounts only as fallback
Secrets OpenBao: per-stack paths, AppRoles bound to their host, short-lived tokens, audit log,
AWS KMS auto-unseal with an email on every use of the key; containers cannot reach it
Containers images pinned by digest, Trivy gate on updates, Docker API only through read-only
socket proxies, own images non-root with no capabilities
Data ZFS checksums, sanoid snapshots taken on the host (a compromised VM cannot delete them)
The home LAN is treated as trusted: apps also answer on their LAN ports without authentik. Only the internet path is gated. Details: docs/security.md.
| Area | Stacks |
|---|---|
| Edge, routing, identity | newt, traefik-internal, authentik, tailscale |
| Media | emby-arr (Emby, Sonarr, Radarr, Lidarr, Prowlarr, Bazarr, Seerr, qBittorrent behind Gluetun, FlareSolverr, Recyclarr, Maintainerr), navidrome, swingmusic, pinchflat, stremio, stremio-server |
| Books | boox (Audiobookshelf, Grimmory, Bookkeep, ReadMeABook) |
| Files, photos, office | nextcloud (+ Talk HPB, office, whiteboard), immich, paperless-ngx, bentopdf |
| Notes and knowledge | trilium, joplin, memos, bookstack, linkwarden |
| Personal finance and planning | sure, wallos, calendar-ce |
| Development and own projects | forgejo, danvas, typehaus, haven, dan-portfolio, dplaneos-website2 |
| Operations | homarr (dashboard), dockpeek (container overview), netbox (inventory), searxng |
Platform services outside Docker: Komodo Core, OpenBao, Samba, sanoid, the access LXC (platform/).
One ZFS pool on the host, datasets per purpose, shared into the Docker VM over virtiofs. App state lives on the
Docker VM's data disk, a zvol in the same pool. sanoid snapshots everything that matters (48 hourly, 30 daily,
6 monthly for important data; shorter for the media library). Restores are a zfs rollback or a copy out of
.zfs/snapshot.
Off-site: a nightly restic backup from ZFS snapshots on the host to a European storage box over SFTP, encrypted before it leaves, with retention, a weekly integrity check of a data sample and mail only on failure. Local backup jobs wait for a dedicated backup NAS. The Pangolin VPS backs up its own state every hour the same way, to a separate account on the same box. Details: docs/data-protection.md.
stacks/<name>/ compose.yaml + .env.example (+ config) of every running stack, sanitized
platform/
docker-vm/ Komodo hooks (pre/post deploy, compose wrapper, log redaction), OpenBao renderer,
secret watcher, container-to-OpenBao firewall rule, daemon.json
komodo/ Komodo Core compose, script that sets the post-deploy hook on all stacks
openbao/ config, ACL policies, daily Raft snapshot, nftables, round-trip check
aws/ CloudFormation: KMS key for auto-unseal + alert on every key use
proxmox/ host settings (thin-pool autoextend, subscription notice, graphical VM consoles),
sanoid snapshot policy, off-site backup (restic script, systemd units)
access/ LXC with a second newt: setup script, egress firewall, sandboxed service
github/ Renovate config, Renovate and Trivy workflows, PR scan script
infrastructure/ the Pangolin edge on the VPS: docs, sanitized config, CrowdSec, Fail2Ban, backup
docs/ architecture, pipeline, security, data protection, service guides
legacy/ previous NixOS/ZimaOS-era stacks and docs, earlier edge designs (not deployed)
The workflows under platform/github/ are copies for reference; they are not active in this repository.
| Document | Description |
|---|---|
| Architecture | Host, guests, storage, network and routing |
| GitOps pipeline | Komodo, OpenBao rendering, Renovate, Trivy, health checks, adding a stack |
| Security | Each layer, and the decisions behind what is not locked down |
| Data protection | Datasets, snapshot policy, off-site backup, what is not covered yet |
| Pangolin edge | The VPS: components, traffic flow, hardening, backup, lessons |
| Traefik | The two proxy layers and why there are two |
| CrowdSec | Fail-open bouncer, CGNAT home allowlist, how it was rolled out |
| Nextcloud update guide | Post-update steps, failure diagnosis |
| Media stack, productivity services | Service configuration notes |