What runs
- Backend: single-tenant Rust binary (~7–8 MiB RAM idle) with embedded Turso and a persistent
/datavolume for the.dbfile and/media - Auth: Better Auth on Node 26 +
node:sqlite(shared across all your services, or started alongside Headcode via--profile with-auth) - Site: Next.js in standalone mode, or hosted on Vercel if you want edge caching
Quick start with Docker Compose or Uncloud
docker compose --profile with-auth up -d
Backups and moving hosts
Because each site stores its entire state in one Turso file plus /media, backups and migrations stay simple:
- Backups: run an online
VACUUM INTOsnapshot and push it via encryptedresticto S3 (seeinfra/uncloud/backup.shin mstack). - Moving servers: move one container and its
.dbfile across your Uncloud WireGuard mesh with zero DNS propagation wait using themstack-moveskill. - 5-layer patching:
unattended-upgradesfor Linux, dailycargo audit+trivyCVE radar opening agent PRs, fast ARM64 builds, anduc deploy.
Let your coding agent run it
Prompt
Deploy Headcode CMS completely self-hosted on my ARM64 server using github.com/headcodecms/headcodecms
and the mstack skills in github.com/markustripp/mstack.
Use Uncloud with bundled auth, configure encrypted restic backups via VACUUM INTO to S3, and run smoke.mjs.All compose profiles and environment variables are in the README. Try it locally first: it is the exact same binary.