Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Instant REST and GraphQL APIs plus a customizable admin app layered over any SQL database — a data platform for turning an existing or new database into a headless CMS/backend.
Runs on a VPS from $6/mo (Kamatera 2GB, 2 GB RAM) · prices checked Nov 2026
Fits home hardware (240 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 install tested), Raspberry Pi 5 (8 GB) (arm64 install tested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Pick Directus when you already have (or want) a plain SQL database and need instant REST/GraphQL APIs plus an admin app layered over it, rather than a new opinionated data store. It's the lightest-touch option here (512 MB, difficulty 2) if your data model is relational and you don't need Supabase's or Nhost's bundled auth-and-realtime stack.
Follow the Directus deploy guide →Paid link — we earn a commission if you shop through it.
Save this as compose.yml and run docker compose up -d:
# Directus — official image with a Postgres backend
# imresamu/postgis is the docker-postgis maintainer's multi-arch build; postgis/postgis publishes amd64 only
services:
database:
image: imresamu/postgis:16-3.5
environment:
POSTGRES_USER: directus
POSTGRES_PASSWORD: changeme
POSTGRES_DB: directus
volumes: ["./data/database:/var/lib/postgresql/data"]
healthcheck:
test: ["CMD", "pg_isready", "-U", "directus"]
interval: 10s
timeout: 5s
retries: 5
directus:
image: directus/directus:latest
ports: ["8055:8055"]
volumes: ["./uploads:/directus/uploads"]
depends_on:
database:
condition: service_healthy
environment:
SECRET: replace-with-a-long-random-value
ADMIN_EMAIL: admin@example.com
ADMIN_PASSWORD: changeme
DB_CLIENT: pg
DB_HOST: database
DB_PORT: 5432
DB_DATABASE: directus
DB_USER: directus
DB_PASSWORD: changeme
# docker compose up -d → http://SERVER_IP:8055Directus is easy to run, but its licence is the first thing to get right before you build on it:
A REST/GraphQL data layer over your own SQL database vs. an all-in-one BaaS with auth, functions, and messaging built in.
A code-first CMS inside your Next.js app vs. an API and admin layer over a SQL database.
A CMS where you build the content model vs. a data platform that sits on top of your SQL database.
Directus used 240 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 512 MB.
The Directus install snippet is marked verified on Ubuntu 26.04 (Nov 2026).