root@sudosecurity:~/stackfile/overview$ cat overview.md
Stackfile
Ready-to-run Docker Compose stacks hardened to one standard — non-root, dropped capabilities, read-only roots, secrets as files — plus stackfile-lint, a Rust CLI that audits any compose file for the same mistakes.
$ stackfile init
Ship a whole stack
in one file.
Stackfile turns a folder of compose files, env templates and bootstrap scripts into a single portable artifact. Lint it, sign it, share it — run the same stack on any host.
- Open source
- Deterministic builds
- One-command deploys
- Lint before you ship
$ stackfile lint stackfile.yml ✓ schema valid v2 manifest ✓ images 6 pinned digests, 0 floating tags ✓ secrets 0 plaintext, 2 refs → vault:// ✓ healthchecks present on all 4 services $ stackfile deploy --dry-run # nothing runs until it lints clean
$ ls /features
Everything in the artifact
One file carries the whole deployment — versions pinned, secrets referenced, health defined.
Pinned everything
Image digests, not tags. What you lint is what ships — no registry drift between staging and prod.
Secrets stay out
vault:// and env:// references resolve at deploy time. The artifact carries pointers, never values.
Lint is the gate
Schema, floating tags, health checks, restart policy, exposed ports — deploy refuses a dirty file.
Portable artifact
Export one signed .stackfile. Anyone with the CLI runs your entire stack — no tribal knowledge.
Roll back anything
Every deploy snapshots. stackfile rollback restores the last signed state, services included.
Composable
Stacks include stacks. Compose a monitoring stack into your app stack with one include: line.
$ ls /stacks
The catalogue, browsable
Curated, maintained stacks — filterable by workload, each with a lint report, file tree and one-line install.
$ man stackfile
Questions
How is this different from docker-compose?
A Stackfile is a signed, linted, self-contained artifact — compose files are one input, not the product.
Where do secrets live?
Never in the file. vault:// and env:// references resolve on the host at deploy time.
Is it open source?
Yes — CLI and spec are MIT; the catalogue is community-maintained with signed releases.
Every Stackfile stack is a compose.yaml plus a setup.sh that gets you to a running, hardened service in about a minute. No app ports on the public interface — Caddy terminates TLS, everything else stays internal. Databases sit on networks your app containers can't reach sideways from, and each stack ships a backup script with a written restore drill.
The standard
Every stack follows the same rules — the same ones stackfile-lint enforces on your own compose files:
- Non-root: every container has an explicit
user:. - No extra power:
cap_drop: [ALL],no-new-privileges:true. - Read-only:
read_only: truewithtmpfsfor scratch space. - Secrets as files:
_FILEvariants andsecrets:, never in environment. - No app ports: only Caddy binds the public IP; databases live on internal networks.
- Bounded: memory, CPU and PID limits; local log rotation; real healthchecks.
- Images pinned: every image is pinned to a sha256 digest, bumped by Renovate.
The stacks
forgejo gitSelf-hosted Git with PostgreSQL — install locked, admin pre-created, sign-up off. vaultwarden passwordsBitwarden-compatible vault. Admin panel off by default; invitations only. ghost publishingGhost CMS on MySQL — the stack this very site runs on, minus the footguns. caddy edgeThe TLS edge for every stack — the only service that binds a public IP. uptime-kuma monitoringUptime checks and a status page your users can actually look at. ntfy notificationsPush notifications to phone and desktop via a plain PUT — no app required on the sender side. jellyfin mediaMovies, shows and music behind HTTPS — no GPU passthrough, no published ports. navidrome musicStreaming server with the Subsonic API — Symfonium, DSub and friends just work. diun watcherWatches every pinned image tag and tells your own ntfy the moment one moves. it-tools utilities70+ IT utilities that run entirely client-side — paste anything, it never leaves the browser. actual-budget financeLocal-first envelope budgeting. Your finances never leave your server. homepage dashboardOne dark page that links every stack you've installed — setup.sh rebuilds it automatically.
stackfile-lint
One Rust binary, 19 rules. Point it at any compose file — ours or yours — and it prints every place the file drifts from the standard, with the why and the fix. SARIF and GitHub-annotations output built in; a baseline file keeps legacy files green while you fix them.
$ stackfile-lint compose.yml
8 findings (2 high, 4 medium, 2 low)
Open source, soon. The code lives on our own git and is being opened up; the download page gets binaries the day it flips public.