The lab
A three-node, self-managed environment
Every service is containerized, hardened to a common baseline, and reachable only through Cloudflare Zero Trust. No open inbound ports.
Architecture
How it's built, top to bottom
Access
- Cloudflare Access
- Cloudflare Tunnel (outbound-only)
- MFA everywhere
Edge
- Cloudflare Pages
- Workers
- D1
- R2
- Turnstile
Services
- Immich
- Jellyfin
- Nextcloud
- OpenEMR (test data)
- Uptime Kuma
- Portainer
Platform
- Docker + Compose
- Hardened container baseline
- 3 NAS nodes
Recovery
- Isolated DR node
- Backblaze B2 (encrypted)
- Monthly restore test
Hardware
What it runs on
Primary NAS nodeMedia, photos, file sync, internal services
Secondary NAS nodeClient previews, evaluations, backup target
Disaster-recovery nodeVersioned backups on isolated hardware
Services
What runs on it, and why
| Service | Role | Why it's here |
|---|---|---|
| Cloudflare Tunnel | Outbound-only connectivity | Internal services reachable with no port forwarding |
| Cloudflare Access | Identity-gated previews and admin surfaces | Nothing private is one password away from the internet |
| Cloudflare Pages | Production websites at the edge | Sites stay up even if a NAS goes down |
| Workers, D1, R2 | Forms and workflows | Server-side Turnstile verification, no servers to patch |
| Nextcloud | File sync and sharing | Files on hardware I control |
| Uptime Kuma | Service monitoring | I hear about an outage before anyone else does |
| Portainer | Multi-node container management | One view across all three nodes |
| Backblaze B2 + rclone | Encrypted off-site backups | A monthly restore test proves they work |
Practice
What I rehearse here before I do it at work
- Container baseline on every service: read-only root filesystem, all capabilities dropped, no privilege escalation, memory and process limits, health checks
- Private previews behind Cloudflare Access before any cutover
- DKIM, SPF and strict DMARC on every sending domain
- Monthly restore tests from off-site backups
- Every change tested, every result recorded