Homelab Architecture: How Everything Actually Fits Together
In 2024 I wrote down how my homelab worked. It was a tidy page on my own wiki: nine numbered steps that followed a single request from the internet to an application. Cloudflare took it first, then pfSense, then Pi-hole for DNS, then Nginx as the reverse proxy, then a login check, and finally, if needed, FreeIPA for a second layer of identity. It looked complete. It was also wrong in a small way that told a larger story. In one step the page said Authelia guarded the protected apps, and in the same breath credited Authentik with checking who you were. I had two login systems in my head and could not say which one did the job.
Two years later, almost nothing on that page still runs. pfSense is still at the edge and Authentik is still the identity provider, but the DNS server, the reverse proxy, the second login system and the identity domain have all gone. What replaced them is not a longer list of better parts. It is a different way of thinking about the whole thing, and this article is the map of it: the one every later piece in this series refers back to.
The argument is simple. A homelab's architecture is not its parts list. It is the map of what fails together and what does not, and designing for independent failure is the only thing that lets one person run all of it.
What changed between 2024 and now

The changes were not made for novelty, and each one says something about what a single operator can afford to maintain.
Pi-hole gave way to Technitium. Pi-hole is excellent at what most people install it for, which is blocking adverts across a home network. Once DNS became the system that decides where every internal service is found, I wanted a fuller platform: proper zones, encrypted DNS for clients, an API to manage records from automation, and blocklists as one feature among many. Technitium is simply the stronger all-round DNS server for that job.
Nginx and Authelia went for a reason that had more to do with fit than with either tool's quality. Authentik became the identity provider, and its proxy provider, which puts a login in front of applications that have no single sign-on of their own, works cleanly with Caddy's forward authentication. Once Caddy and Authentik were working together, a second login system was redundant, and the confusion on that old wiki page disappeared with it.
FreeIPA went because a full identity domain is a large piece of infrastructure. It brings its own directory, its own certificate authority, its own Kerberos realm and its own operational habits. That makes sense for an organisation with many people and many machines to enrol. For a lab with one operator, it was far more machinery than the problem needed, and every hour spent keeping it healthy was an hour not spent on anything else.
Cloudflare stayed, but its role narrowed. It now sits in front of the handful of names that are genuinely public, and nothing else.
The constraints that shape a one-person homelab
Every design decision in this lab follows from three constraints, and they are worth stating plainly because they rule out a lot of advice written for larger environments.
The first is that there is one operator. There is no on-call rotation, no second pair of eyes at three in the morning, and no one else who remembers why a setting was changed. Anything that relies on memory will eventually be forgotten, so the design has to carry its own explanation.
The second is the hardware. Everything runs on a two-node Proxmox cluster, not a rack of servers. That rules out the usual answer to reliability, which is to run three of everything and let a cluster sort it out. Two nodes can share the work, but they cannot provide genuine high availability for every service, and pretending otherwise would only add complexity that fails in surprising ways.
The third is the network. The lab sits on one flat local network, shared with the household's own devices. Every machine can, at the network level, reach every other machine. That shapes the security model more than any other single fact.
Put those three together and the design goal becomes clear. I cannot stop things from failing. What I can do is make sure that when one thing fails, it takes as little else with it as possible, and that I can see exactly what has broken and why.
Three ways in: public, browser and app-to-app traffic
The most important structural decision in the lab is that there is no single front door. There are three, each with its own rules about who is trusted.
The first is for the public. A small number of services are deliberately reachable from the internet, such as this magazine and a public mirror of my code. Their names are proxied through Cloudflare to my pfSense firewall, where HAProxy runs as a package and terminates the connection. Nothing behind pfSense is exposed directly; if a service is not on that short list, there is no path to it from outside. HAProxy used to run on a virtual machine of its own. Moving it onto the firewall itself removed a machine whose only job was to be another thing that could fail.
Each way in can fail without taking the other two down with it.
The second is for people on the home network using a browser. Every internal application with a web interface is reached through a dedicated Caddy virtual machine. Before Caddy will even pass a request to Authentik for a login, it demands a client certificate from the browser, a requirement known as mutual TLS. A device without that certificate never sees a login page at all. This is the strictest of the three paths, because it is the one a person with a compromised laptop on the same network would try first.
The third is for applications talking to each other. When one service needs to call another, it uses a second, separate Caddy instance that lives alongside the applications on the main Docker host. Here the trust model is deliberately different. Requests from known lab machines are let through without a login, because a background service cannot click through a sign-in page, while anything else is sent to Authentik, which in practice means a browser that wanders into this zone is turned away.
What binds the three together is DNS. Each path has its own internal domain, so the zone a name lives in decides which door its traffic uses. A name in the browser zone points at the Caddy VM; a name in the app-to-app zone points at the internal Caddy; a public name points at Cloudflare and, through it, at pfSense. Nothing has to be configured twice, and nothing can accidentally take the wrong route.
The payoff is independence. Each way in can fail without taking the other two down with it. If pfSense's HAProxy stops, the public loses access to the magazine and the code mirror, and nothing else in the lab notices. If the Caddy VM fails, I lose my browser access to internal tools, but every service keeps running and keeps talking to every other service. If the internal Caddy fails, the applications that depend on each other stop cooperating, but the public sites stay up. Three separate failures, three separate consequences, none of them a total outage.

The services everything else depends on
Some systems carry far more weight than their size suggests, and the clearest example is DNS.
Every machine in the lab asks Technitium where to find everything else. Because the zones decide the traffic paths, a DNS failure does not just slow things down. It removes the map. I learned how complete that dependency is when Technitium once failed to start after one of the Proxmox nodes went down without warning. No application had crashed and no other server was down, yet the lab stopped working, because nothing could find anything else. Since then I have treated DNS as part of the foundation rather than as one service among many: hardened, given a fallback for its own upstream lookups, and watched as closely as the firewall.
Secrets are the other foundation, and here the design deliberately softens the failure. Every password, token and key lives in HashiCorp Vault, but no application ever talks to Vault directly. Each Docker host runs a small Vault Agent, which logs in on the host's behalf and writes each application's secrets into a local file that the container reads at start-up. Vault Agent was built for exactly this pattern of rendering secrets to files, so applications need no Vault code of their own. The consequence is that if Vault goes down, nothing stops immediately. Running services keep the secrets they already have. Renewals stop, and authentication fails eventually as tokens expire, which gives me hours, not seconds, to fix it.
Laid out in order, the dependencies form tiers. pfSense sits at the bottom, because everything relies on it for the network and for time. Vault comes next, issuing the certificates that the browser proxy and DNS use. Then comes the main Docker host, then the automation host that runs Git and the orchestration tools, then the browser-facing proxy, and finally monitoring and security monitoring, whose failure costs visibility but no service at all. Knowing that order is what turns an outage from a panic into a checklist: start at the bottom tier and work up.

Built from code, changed through Git
A design that depends on one person's memory is fragile, so as far as possible this lab is described in code.
Every guest begins as an image built with Packer, is created on Proxmox by Terraform and is configured by Ansible. Almost every guest runs Rocky Linux and does a single job, which keeps each machine simple enough to rebuild without ceremony. The Proxmox VE documentation covers the platform's own side of this in depth, from guests to backups; the part that matters here is that a lost machine is rebuilt from the same definitions that built it in the first place, not reconstructed by hand from notes.
Changes follow the same discipline. The repositories that describe the lab live in my own Git server, and their main branches are protected: nothing lands without a pull request, and every pull request is checked by continuous integration for lint errors, invalid configuration and leaked secrets. Once a change is merged, each host notices within minutes, pulls it and applies only the parts that changed, then reports what it did. Merging is the deployment. I do not log in to a server to change a file, which means a server cannot quietly drift away from what the repository says it should be.
That rule has caught real problems. A secret scan across old commits found credentials that had been committed long before the scan existed, and each one was rotated rather than waved through. And a change that looked harmless, an edited proxy configuration, once reported a successful reload while the running proxy carried on with the old file. Fixing how that file was mounted means the reload now does what it says. Neither would have been visible without a process that checks everything the same way, every time.
Backups and monitoring that stay out of the way

Recovery is split into three independent layers, because one large backup tends to fail in one large way.
The first layer is the code itself: configuration lives in Git, so any machine's setup can be rebuilt from scratch. The second is Proxmox Backup Server, which is there to capture whole guests, operating system and all. The third is Kopia, which backs up the application data on the main Docker host, the databases and uploaded files that the other two layers do not reach, onto a disk separate from the one it is protecting. None of the three depends on the others, so losing one leaves the other two intact.
One thing is deliberately not backed up at all: the media pool. It is large, it can be rebuilt from its original sources, and the cost of protecting it properly outweighs the cost of losing it. Saying so plainly matters, because a backup strategy is defined as much by what it leaves out as by what it covers.
Monitoring follows a similar principle of staying out of the way. Every host pushes its metrics and logs to a central monitoring server, and a separate security monitoring platform receives events from an agent on each machine. Neither sits in the path of any request. They watch, they never mediate, and if either goes down the lab carries on exactly as before. The only thing lost is my ability to see it, which is a serious problem but never an outage.
The weak point I haven't designed away
For all the effort spent keeping failures apart, one remains that I have chosen to live with. A single Docker host runs most of the lab's applications, including Authentik and the internal Caddy that lets those applications reach each other. If that machine dies, single sign-on goes with it, the app-to-app path goes with it, and most of what the lab does stops until it comes back.
That was a deliberate trade, not an accident. For one operator, consolidating applications onto one well-understood host has real advantages. There is one place where the conventions apply, one set of volumes for Kopia to protect, one host to patch and watch. Spreading those applications across several machines would reduce the blast radius of any single failure, but it would multiply the number of things to maintain, and in a lab run by one person, maintenance is the scarcest resource there is.
Being honest about it is also what makes the rest of the architecture legible. Every other layer, the three ways in, the slow failure of secrets, the backups that do not lean on each other, exists so that a failure stays where it started. This host is the one place where that principle gives way to convenience. Removing it would mean moving identity and the internal proxy onto machines of their own and accepting more moving parts in exchange for a smaller bad day.
That is the real lesson of comparing the 2024 page with today. The old design listed its components in the order a request touched them, and treated the result as an explanation. The current one is organised around a different question: when this breaks, what else breaks with it? Every article that follows in this series answers that question for one part of the lab, and the next piece starts at the beginning, with the decision to leave closed systems behind.