Project · ongoing
Self-hosted infrastructure
What I run today: a droplet I rent in Toronto for source control, CI, automation and a CRM, plus a Proxmox node at home. Until a 2026 flood, a 5-node Docker Swarm.
My infrastructure runs in two places: a server I rent in Toronto for the services the practice depends on, and a Proxmox node at home for storage and the house network. Until 27 July 2026 the home side was a five-node Docker Swarm, most of it on a Dell R720. A flood that night took the R720 and everything on it; the small node survived, and the services that mattered moved to the rented server.
What runs today
Remote: a droplet in Toronto
A DigitalOcean droplet that I rent and administer. Coolify deploys the services and Traefik routes them and terminates TLS.
- Gitea — source control, and the source of truth for everything the practice builds. Its Gitea Actions runner runs this site’s quality gates and deploys it.
- Vaultwarden — the password vault, with a nightly encrypted backup to Google Drive.
- n8n — workflow automation. This site’s contact form goes through it.
- EspoCRM — the practice’s CRM, where contact-form messages land.
- Umami — cookieless analytics for this site and my other sites, with a weekly traffic digest by email.
- A wildcard 404 fallback for unused subdomains, on a DNS-01 wildcard certificate.
On-prem: one node at home
- A single Proxmox node, a small Dell OptiPlex. It survived the flood.
- A NAS VM running OpenMediaVault for personal data and photos, backed up nightly to a separate local pool and from there to the off-site Pi.
- A media container: Jellyfin and the tools that feed it.
- A small web/utility VM: Uptime Kuma for monitoring, a dynamic-DNS updater, and Caddy.
- A UniFi gateway at the edge of the home network. It also serves DNS for the house and runs the WireGuard VPN.
- A Raspberry Pi built as the off-site backup target: it takes append-only restic copies over WireGuard, and it is set up to live outside the house, so a second flood would not take the backups with the originals.
A rebuild of the on-prem tier is planned. Hermes, the agent crew, stays offline until it lands.
How this site ships
This site is an Astro static build served by Netlify. The source lives on Gitea; changes land on main only through a reviewed pull request, Gitea Actions runs the quality gates on every PR, and a merge deploys to Netlify. The colophon lists where each part of the site runs and when that was last checked.
The domain, DNS, and mail never lived on the server that went down, so when the site moved to Netlify on 18 September 2026 only the build host changed.
Until July 2026: the Swarm
Before the flood, this was the platform everything I built at home ran on — including this website and the Hermes agents. It was a private cloud operated to production standards: infrastructure as code, tiered failure domains, monitoring that paged before users noticed, and a deploy pipeline with a human approval gate. The site itself ran as two replicas behind Traefik, built by Woodpecker CI and pushed to a local Docker registry on the manager node.
Topology
- Five Ubuntu Server VMs in one Docker Swarm — one manager, four workers — on two Proxmox hosts, most of them on the R720. A Raspberry Pi cast the third quorum vote.
- Nodes ranged from 4 vCPU / 3 GB RAM up to 12 vCPU / 16 GB, roughly 36 vCPUs and 41 GB of RAM across the cluster.
- 50+ services, pinned to nodes with Docker node labels and placement constraints so stateful workloads land on the hardware sized for them.
- One node carried an NVIDIA GPU passed through for Plex hardware transcoding.
Stacks tiered by criticality
Services were grouped into stacks by how much their failure hurts, not by what they do. The data layer (databases, metrics storage) deployed first; access portals, surveillance, and media/apps followed; the reverse proxy fronted it all. The payoff was operational: I could drain and patch a media node without touching a database, and when something broke, the blast radius was already drawn.
Storage
A dedicated NFS server running OpenMediaVault exported three shares — service data, media, and camera footage — mounted on every node. Because persistent state lived on NFS rather than on any one VM, Swarm could reschedule most services onto another node and they came back with their data.
Edge and networking
- Traefik v2 was the single ingress. Every service got a subdomain, and TLS came from Let’s Encrypt via Cloudflare DNS challenge — no per-service certificate management.
- The Docker bridge ran on a custom IP range because the default conflicted with my LAN subnet. That one bit me before I understood it.
- Overlay networks were split by concern — proxy traffic, log shipping, and application traffic each got their own network.
- Upstream of the swarm, the LAN was UniFi-managed with VLAN segmentation; the controller lived on a separate edge box so the network would survive the compute host going dark.
Observability
- Prometheus + Grafana were the primary pane of glass; node exporters ran on the swarm nodes, both hypervisors, and the NFS server, so I could see the whole stack down to the metal.
- Uptime Kuma watched service availability; Smokeping tracked network latency over time.
- Every stack file shipped container logs via the GELF driver to a central collector. I ran a full ELK pipeline on top of that for a while and retired it — at homelab scale its resource appetite outweighed what it returned.
Configuration sync
All five nodes stayed in sync through a bidirectional rsync job that ran every 10 minutes from cron: scripts, stack files, and service configs. I could edit a config on any node and it propagated everywhere — with node-specific configs deliberately excluded. A systemd unit brought the whole cluster up in dependency order, data layer first.
The one Compose exception
Media automation (the ARR stack) routed all its traffic through a WireGuard
container using Docker’s network_mode: service: — every app shared the VPN
container’s network namespace, so if the tunnel dropped, nothing leaked. Swarm
doesn’t support sharing a network namespace between services, so this one
stack ran under plain Docker Compose on a single node while everything else
was Swarm. Knowing where your orchestrator’s model ends is worth more than
forcing everything into it.
What carried over
Nothing there was a toy deployment. The point of the lab was that the patterns — tiered failure domains, GitOps, single ingress, metrics-first observability — are the same ones I use at work, practiced on infrastructure where I owned every layer. They carried over: Traefik still fronts the services, and Gitea is still the trust boundary for every change.