Networking as a hobby: my homelab
My hobby is networking: making machines in different places behave like one private network. Here is my homelab, two small desktops and a little cloud server, what runs on it, and how it all connects, without giving away the map.
By day I work with simulations that run on university clusters. In my spare time my hobby is networking: making machines in different places work together as one private, secure network. My homelab is where I practice it. It runs on two small desktops and a little cloud server, and along the way it has become home to the tools I use every day: a LaTeX editor, notes, local AI models, my photo library, and the editor behind this website.
This post is a tour: the hardware, the layers on top of it, what runs there, and the part I enjoy most, the network that ties it all together. It is written for anyone curious about self-hosting and networking. One rule throughout: I describe the ideas, not the map. Names, addresses and the exact layout stay private, for the same reason you don’t post a photo of your house keys.
The hardware
Everything runs on two small HP business desktops, an EliteDesk G5 and a ProDesk G5 in the Desktop Mini format, with 32 GB and 16 GB of memory. Machines like these are built for offices: they are quiet, small enough to disappear on a shelf, and frugal with power.
A small cloud instance completes the set. It runs the few services that have to stay up even when the power or the internet at home goes down.
Layers, not one big server
Proxmox runs directly on both machines. It is a hypervisor: it divides a machine into virtual machines and Linux containers that behave like separate computers while sharing the same hardware. Docker runs inside one of those containers, and on top of Docker sit the services themselves, grouped into stacks.
A stack is one compose file: a short text file that names the images, the storage and the settings for a group of containers that belong together, such as a wiki and its database. On the main Docker host alone there are 26 stacks and about 75 containers. I manage them in Portainer, a web interface for Docker, but the compose files are the real record. If a machine failed, they and the backups are what I would rebuild from.
This will feel familiar to anyone who works on HPC. On a cluster you load modules or run containers so that a simulation behaves the same way next month as it does today. A homelab rewards the same habit: describe the environment in text, and treat the machine itself as replaceable.
What runs there
Writing and research
The service I use most is Overleaf, the collaborative LaTeX editor, running on my own hardware. I run two builds of it. One is the official Community Edition. The other is my own modified build of Overleaf CEP, an extended community version that adds features the official edition leaves out. I am moving to the second, but CEP is not maintained by a central team, so the Community Edition stays as a fallback. It is the same lesson as with research software: when a tool you depend on rests on a few volunteers, keep a way back.
Around it sit the usual helpers: two wikis and a quick-notes app, a project planner, an archive that makes scanned paperwork searchable, an office suite and a tool for signatures.
Private AI
Open language models run locally with Ollama, next to a private search engine that lets them look things up without building a profile of me, and a tool that answers questions about my own documents. None of it is fast by data-center standards. All of it stays at home.
Photos and media
Immich is my photo library; some of the pictures are on the Photography page. It recognizes faces and objects on the machine itself, with Intel’s OpenVINO speeding up the work on modest hardware. Next to it are a media server for films and music and one for audiobooks and podcasts.
Tools I built
Two of the services are my own. Folio Scan Studio turns printers and scanners that still work, but whose official software has been abandoned, into a private, browser-based print and scan workstation. It is open source and runs on anything from a Raspberry Pi to a mini PC.
The other is Site Studio, the private editor behind this website. The site itself is plain text files: my CV in YAML, my publications in BibTeX, and posts like this one in Markdown. Site Studio shows a live preview, keeps my unfinished edits as drafts, and publishes them all with one button. A GitHub Action builds the site, and Cloudflare Pages serves it, so the website is the one thing that doesn’t run at home. Only its editor does.
Nowadays AI can help a lot with projects like these.
Automation and home
Small workflows glue services together, the kind of job that would otherwise be a script and a timer, and home automation does the same for the house.
One private network across places
Running services is the easy part, and for me not the most interesting one. The question I enjoy is how to reach them safely: from a laptop at a conference, a phone on the bus, or a machine somewhere else.
The traditional answer is to open ports on the home router and put a reverse proxy in front. It works, but every open port is a door that anyone on the internet can knock on, and the doors multiply with each new service.
For my own access I use a mesh VPN instead: Tailscale, which is built on WireGuard. Every machine and device that belongs to me joins one private network, wherever it is: the servers at home, the cloud instance, my laptop and my phone. Traffic between them is encrypted end to end. When two devices can reach each other directly they talk directly, and when they can’t, the traffic is relayed, still encrypted. Because each device only makes outgoing connections, this works behind home routers and institutional firewalls without forwarding a single port.
A few properties make this pleasant to live with:
- Names, not addresses. Each machine has a name on the private network, so I reach a service by name and never have to remember an address.
- Room for least privilege. Access rules can limit which device may talk to which machine, so a phone need not reach everything a laptop does.
- Location stops mattering. A service can move from one machine to another, or from home to the cloud, and the way I reach it barely changes.
- Public and private stay apart. This website, which is meant for everyone, doesn’t live at home at all, and anything meant to be private is reached only over the private network.
Some things are meant to be reached from outside, without a VPN. For those I use a Cloudflare Tunnel. A tunnel needs no open port on the router: a small connector at home makes an outgoing connection to Cloudflare, and Cloudflare passes requests for a chosen service back through it. My home address never appears in public, and Cloudflare’s network filters much of the internet’s background noise before it reaches me. The rule I keep is simple: private things go over the private network, and public things go through Cloudflare or don’t live at home at all.
The cloud instance has a specific job. Power and internet at home fail now and then, so the few services that must always answer live on a small cloud server that is part of the same private network. From the inside it looks like just another machine. It also checks from the outside that everything else is up.
What I am not showing is the real map: which machine runs what, what anything is called, and how the rules are written. The diagram above is conceptual on purpose. A homelab is a hobby, but it holds real data, and there is no reason to hand anyone a floor plan.
Keeping it alive
Self-hosting makes you your own operations team, so a few services exist only to look after the others: monitoring that collects measurements from the machines and containers and turns them into Grafana dashboards, encrypted backups, a start page that links everything together, and an updater that keeps images from other projects current.
Some lessons came the hard way:
- Measure before you limit. The website editor runs a trial build of the whole site before it publishes. With 1 GB of memory, that build was killed halfway through. With a limit based on what it actually used, it never was. Limits are good; guessed limits are not.
- Check after every change. Once, an update to a stack failed partway and removed the images it was meant to replace. The running container kept going, so nothing looked wrong, but the next restart would have failed. Now I check health after every update.
- Automatic updates are for other people’s software. The updater is good at keeping published images current. It has nothing to offer an image I build myself, and it says so in the logs every hour.
- Old state outlives containers. A lock file left behind by an earlier run once stopped the editor’s preview from starting after its container was recreated. Containers are disposable; the files they leave on disk are not.
If you want to start
You don’t need two machines and 75 containers. If you are thinking about starting, this is what I would suggest:
- Start with one small, quiet machine and one service you will use every day. A LaTeX editor or a notes wiki is a good first choice.
- Write every service down as a compose file from the first day.
- Set up backups before you need them, and restore one to prove they work.
- Use a mesh VPN instead of opening ports.
- Keep anything public, such as a website, on a host built for the public.
A homelab is never finished, which is half the fun. If you run one, or are thinking about it, I’d be glad to compare notes: my contact details are on the Contact page. And if you have a printer that deserves a second life, have a look at Folio Scan Studio.