What is Directus?
Directus takes a refreshingly honest approach to headless CMS: it introspects a plain Postgres database and instantly serves REST and GraphQL APIs plus a polished admin studio over it. Your schema stays normal SQL - no proprietary content model lock-in, and anything else (BI tools, scripts, this catalogue’s Metabase) can query the same tables.
This template runs Directus 11 on a managed Postgres with an uploads volume. Three variables bootstrap it: a SECRET, and the first admin’s email and password. Set PUBLIC_URL after first deploy and the studio, auth flows, and asset URLs all line up.
The license story is unusual: self-hosting Directus is free at any scale (BSL source-available); what costs money is their cloud hosting. This stack does that part on your own compute.
What you get
- Instant REST + GraphQL APIs over your Postgres schema
- Data studio: content editing, roles/permissions, flows (automation)
- No proprietary content model - it is just your database
- File library on a persistent uploads volume
- Managed Postgres auto-provisioned and auto-wired
- Opt-in realtime websockets upstream
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
directus | studio + REST/GraphQL API (:5000) | yes |
db | Postgres - managed service on Lyngbak, container locally | no |
Before you deploy
SECRETsession/crypto secret (openssl rand -hex 32) - explicit, or sessions break on restart
ADMIN_EMAIL / ADMIN_PASSWORDbootstrap admin, applied on first init only
PUBLIC_URLset to the app’s https domain after first deploy
Sizing and billing
1 GiB suits typical headless-CMS traffic; content APIs are read-heavy and cache well. The uploads volume is the growth dial for media-heavy projects.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 9.88 GiB of volumes cost $0.15 per GiB a month ($1.48/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Directus Cloud | hosting add-on | $99/mo | cheapest cloud hosting (3 seats, 25 collections); the license itself is free either way |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Directus or Strapi?
Directus if you want the database to stay a normal Postgres schema you own (it introspects; nothing is locked into the CMS), Strapi if you prefer code-first content-type definitions in a Node project. Operationally Directus is the lighter, single-container deploy - which is why it is the one in this catalogue first.
What does the BSL license mean for me?
Self-hosting for your own projects and clients is free at any scale. The Business Source License mainly restricts offering Directus itself as a competing hosted service. For the standard agency/product use case, nothing changes versus open source.
How does self-hosting compare to Directus Cloud?
Directus Cloud’s cheapest hosting add-on is a monthly fee capped at 3 seats and 25 collections. Self-hosted has no seat or collection limits - the software is identical, you are only replacing their hosting line item.
Can other tools query the same database?
Yes - that is the design. The schema is plain Postgres, so Metabase dashboards, ETL jobs, or any in-project app can read the same tables Directus manages, by service name, without going through the API.