VPSFolio

Comparisons · Databases & Headless CMS · 2026-11-30

NocoDB vs Directus: Measured RAM (838.8 vs 262.3 MB) & Docker Ops

NocoDB idles at 838.8 MB vs Directus at 262.3 MB — a 3.2× gap. Compare container breakdowns, secrets, volumes, and VPS sizing for self-hosting.

Measured side-by-side · Sandbox Docker Compose 3.2× idle RAM difference

NocoDB

nocodb/nocodb
Idle RAM
838.8 MB
Containers
3
Startup
112.8 s
VPS tier
2 GB VPS
Container breakdown
  • nocodb 765.1 MB
  • db 69.7 MB
  • redis 4.0 MB

Directus

directus/directus
Lighter RAM
Idle RAM
262.3 MB
Containers
3
Startup
93.8 s
VPS tier
1 GB VPS
Container breakdown
  • directus 205.6 MB
  • database 44.7 MB
  • cache 12.0 MB
Bottom line

Directus uses 262.3 MB idle versus NocoDB's 838.8 MB — a 3.2× gap and 576.5 MB difference. Pick Directus for lean API-first headless CMS work on a 1 GB VPS; pick NocoDB when you need an Airtable-style spreadsheet UI and can afford a 2 GB VPS.

NocoDB and Directus both put a UI and API on top of PostgreSQL, but their measured idle footprints diverge sharply. In our verified Docker Compose runs, NocoDB idles at 838.8 MB while Directus idles at 262.3 MB — a 3.2× ratio and a 576.5 MB difference. That gap decides which VPS tier you need before you write a single collection.

On a 1 GB VPS, NocoDB’s 838.8 MB leaves almost nothing for the OS, reverse proxy, and page cache, so it effectively demands a 2 GB box. Directus at 262.3 MB fits a 1 GB VPS with room to spare, and co-hosting a second small service is realistic. Startup also favors Directus (93.8 s vs 112.8 s), though both are dominated by Postgres initialization.

Why the RAM gap exists

Both stacks run three containers, but the app container is where the difference lives.

NocoDB stack (838.8 MB total):

  • nocodb (nocodb/nocodb:latest): 765.1 MB
  • db (postgres:16-alpine): 69.7 MB
  • redis (redis:7-alpine): 4.0 MB

Directus stack (262.3 MB total):

  • directus (directus/directus:11): 205.6 MB
  • database (postgres:16-alpine): 44.7 MB
  • cache (redis:7-alpine): 12.0 MB

The NocoDB app container alone (765.1 MB) is nearly three times the entire Directus stack. NocoDB’s compose sets NODE_OPTIONS: --max-old-space-size=1024, and the Node process plus its spreadsheet view engine, attachment handling, and metadata layer settle high even at idle. Directus is a leaner Node service that introspects an existing schema rather than rendering grid/kanban/gallery views server-side, so its baseline stays at 205.6 MB. Postgres and Redis are comparable in both stacks; the gap is almost entirely the application tier.

Day-2 operations: secrets, volumes, and failure modes

Aspect NocoDB Directus
Containers 3 (nocodb, db, redis) 3 (directus, database, cache)
Idle RAM 838.8 MB 262.3 MB
App container RAM 765.1 MB 205.6 MB
Startup time 112.8 s 93.8 s
Port (localhost-bound) 8080 8055
HTTP status on probe 200 302
Database postgres:16-alpine (69.7 MB) postgres:16-alpine (44.7 MB)
Cache/sidecar redis:7-alpine, --save "" --appendonly no (4.0 MB) redis:7-alpine, --appendonly yes (12.0 MB)
Volumes nocodb_data, nocodb_db directus_database, directus_uploads, directus_redis
Required secrets DB_PASSWORD, NC_AUTH_JWT_SECRET, NC_SITE_URL KEY, SECRET, ADMIN_EMAIL, ADMIN_PASSWORD, PUBLIC_URL, DB_PASSWORD
Backup workflow pg_dump of nocodb_db + archive nocodb_data (attachments, db.json) pg_dump of directus_database + archive directus_uploads
Operational gotchas Redis runs without persistence, so cache is cold after restart; db.json holds the Postgres password and must be chmod 600 Redis persists via AOF; KEY/SECRET must be stable or sessions and tokens break; uploads live outside the DB

NocoDB’s Redis is deliberately non-persistent (--save "" --appendonly no), which is fine because it is only a cache — but it means every restart starts cold. Directus enables AOF on Redis, so its 12.0 MB footprint includes an append-only file on the directus_redis volume. NocoDB also reads a db.json file for the Postgres connection, which duplicates the password already in .env; keep both at umask 077. Directus keeps everything in environment variables, so there is one source of truth but more required secrets to rotate.

Product scope and workflow trade-offs

NocoDB is an Airtable replacement: grid, gallery, form, kanban, and calendar views over an existing SQL database, with shareable views and role-based access. If your users think in spreadsheets, NocoDB is the shorter path. The cost is the 765.1 MB app container and a heavier view-rendering path.

Directus is API-first. It introspects your schema and generates REST and GraphQL endpoints, an admin app, and a granular permissions layer without copying data into a proprietary store. It is the better fit when the API is the product and the admin UI is secondary. The 205.6 MB app container reflects that leaner runtime.

Neither project publishes a minimum RAM figure, and both scale with workload — heavy imports, large uploads, and concurrent editors push memory up. Treat the verified idle numbers as a floor, not a ceiling.

VPS sizing and co-hosting impact

NocoDB at 838.8 MB effectively needs a 2 GB VPS once you add the OS, a reverse proxy, and headroom for imports. A 1 GB VPS will boot it but leaves little margin before the OOM killer intervenes under load.

Directus at 262.3 MB runs comfortably on a 1 GB VPS and can co-host a small companion service. If you expect heavy API traffic or large uploads, a 2 GB VPS gives comfortable headroom; a 4 GB VPS is only warranted for multi-tenant or high-concurrency deployments. See the full benchmarks leaderboard for how both stacks compare against other self-hosted databases and headless CMS options.

Which one should you self-host?

Choose NocoDB if:

  • Your users need an Airtable-style spreadsheet UI with grid, kanban, and form views.
  • You can dedicate a 2 GB VPS to the stack and want Redis caching without persistence complexity.
  • You are comfortable managing a db.json connection file alongside .env.

Choose Directus if:

  • You want an API-first headless CMS over an existing PostgreSQL schema.
  • You need to fit on a 1 GB VPS or co-host with another service — 262.3 MB vs 838.8 MB is a 3.2× difference.
  • You prefer all configuration in environment variables with persistent Redis.

Full setup walkthroughs: self-host NocoDB with Docker Compose and Postgres and self-host Directus with Docker Compose.