Personal project · Sep 2026
next.js · fastapi · directus · postgresql · docker · github actions
The stack
A Next.js frontend, a FastAPI service, and Directus as the CMS, all backed by PostgreSQL. Content is edited in Directus and the site refreshes within seconds of publishing.
Hosting
Everything runs with Docker Compose on a VM on my Proxmox home server. A Cloudflare Tunnel is the only way in, so the VM opens no inbound ports.
Deploys
Every merge to main builds the images in GitHub Actions and scans them with Trivy; a failed scan stops the release. An ephemeral self-hosted runner on the VM then pulls the new images and deploys them. Production secrets are encrypted in the repo with SOPS.
I wrote up how it's built in How I built this site.