cat projects/homelab/README.md
Homelab
A segmented homelab on one mini PC that hosts this site with zero open inbound ports, tested backups and deploys I can roll back in seconds.
- Role
- Designer, builder and operator
- Layers
- L1 · DESIGN Infrastructure & DevOpsL3 · RUN IT Support & Systems Administration

Problem
My portfolio ran on a platform I didn’t control, and my private tools were scattered across my laptop. I wanted one place to run both, without exposing my home network to the internet.
Constraints
- One small machine and a home internet connection behind a landlord's router I can't change.
- No port forwarding: nothing on the internet may connect into my network.
- Public apps must be unable to reach my private network, even if compromised.
- No budget for extra hardware yet.
Approach
One hypervisor, four isolated guests: private apps, a DMZ for public apps, network-wide DNS filtering and private remote access. Public traffic arrives only through an outbound tunnel.
- Virtualisation: separate guests for private apps, public apps (in a DMZ), DNS filtering and remote access.
- Network: default-deny firewalls on every guest; the DMZ cannot open connections into the home network.
- Publishing: an outbound-only tunnel; admin pages sit behind an access gateway plus the app's own sign-in.
- Delivery: CI builds, tests and scans every image; I deploy by exact digest with a script and roll back with another.
- Operations: nightly database dumps on top of VM backups, an inventory and changelog, written incident reports.
Decisions
- A tunnel instead of port forwarding. Nothing to scan or attack at home. Trade-off: I depend on the tunnel provider.
- Manual, pull-only deploys. CI can't reach the server, so a stolen CI token can't change the live site.
- Test the restore before launch. A backup that has never been restored is only a hope.
What went wrong
- DNS died after a hardware move. The DNS filter needed DNS to find its own upstream servers. Fix: upstreams by IP address, DNS first in the boot order, and a cold-boot test after any physical change.
- The SSD stopped accepting writes. Every filesystem went read-only and the admin failed closed. The drive was healthy; its power-saving mode was the likely cause. Fix: power saving disabled, and the first backup copy moved off that disk.
- The first seed copy carried test data. A row-count check caught it before it left my laptop. Fix: non-content tables excluded, and row counts compared on both sides.
Outcome
Live on hardware I own with 0 inbound ports, nightly backups with a restore proven before launch, and rollback in about 30 seconds.
Stack
Proxmox · Docker · PostgreSQL · Cloudflare Tunnel & Access · Tailscale · AdGuard Home · GitHub Actions · Trivy · Next.js