Published

n8n

Workflow automation platform with a visual editor, webhooks and schedule triggers, and a Code node. The production self-hosted stack runs the n8n main process, an external task-runner sidecar for Code-node execution, and PostgreSQL; queue mode adds Redis and worker processes.

Resources by load level

What the app itself needs at each level, next to what we recommend for a server that runs only this app.

LevelWhat it meansApp requirementsRecommended
LightEstimateUp to 10 active workflows, 10,000 executions per month (~330/day), up to 5 concurrent executions, payloads of a few MB; regular mode.1.75 vCPU · 1.875 GiB RAM · 8.5 GiB disk2.22 vCPU · 3.75 GiB RAM · 19.665 GiB disk
MediumEstimateUp to 50 active workflows, 50,000 executions per month (~1,700/day), up to 20 concurrent executions (N8N_CONCURRENCY_PRODUCTION_LIMIT=20); regular mode.2.5 vCPU · 2.75 GiB RAM · 8.5 GiB disk3.12 vCPU · 4.8 GiB RAM · 19.665 GiB disk
HeavyEstimateUp to 200 active workflows, ~10,000 executions/day, up to 50 concurrent executions, payloads of tens of MB; still one main process (beyond this, enable queue mode).4 vCPU · 6.6 GiB RAM · 8.5 GiB disk4.92 vCPU · 9.42 GiB RAM · 19.665 GiB disk

Recommended = app requirements + system baseline + safety headroom, under sizing policy 2026.10.0. Options stay at their defaults. “Estimate” means the sources give no number for that case, so it is worked out from them by the method stated under Components. How the numbers are built

Size it in the Stack Sizer

Need a server for this? Look for at least 2.22 vCPU / 3.75 GiB RAM

Based on the Recommended figure for Light load above, which includes system baseline and safety headroom.

ANAROQ is in development and doesn't sell servers. These are some options for renting a server, in no particular order.

Regular links, not affiliate links. ANAROQ earns nothing from them. Providers are not ranked. How ANAROQ may earn from links

Ready-to-run files

Support level Run-tested

Compose template verified by a run on the current profile version.

Create docker-compose

Components

What each component needs at each load level, before baseline and headroom.

vCPU / GiB RAM / GiB disk
ComponentLightMediumHeavySources
n8n (main) (app)0.5 / 0.625 / 1.251 / 1.25 / 1.252 / 4 / 1.25[3][8][11][12][13][14][17][24]
n8n task runners (external) (other)0.25 / 0.25 / 0.750.5 / 0.5 / 0.751 / 1.6 / 0.75[5][9][11][22][23]
PostgreSQL (database)1 / 1 / 6.51 / 1 / 6.51 / 1 / 6.5[43][44][45][46][47][48][49]
Redis (queue broker) (queue)———
n8n worker (worker)———
n8n task runners (worker sidecar) (other)———
How the estimates are worked out
  • n8n (main) · Light: RAM: n8n Cloud Pro tier for 10k executions gives an instance 640 MiB (0.625 GiB), above the ~180 MiB n8n uses alone and the 500Mi limit in n8n's Kubernetes example. vCPU: Cloud grants only 20 millicore burstable, so we use a quarter of the 2-vCPU c5a.large from n8n's single-instance benchmark. Disk: image 272 MB compressed × 3 rounded up to 1 GiB, plus 0.25 GiB for /home/node/.n8n (encryption key, event logs capped at 3 × 10 MB).
  • n8n (main) · Medium: RAM: n8n Cloud Pro tier for 50k executions gives an instance 1280 MiB (1.25 GiB). vCPU: half of the 2-vCPU c5a.large from n8n's single-instance benchmark (one Node.js event loop). Disk as light: 1 GiB image (272 MB compressed × 3, rounded up) + 0.25 GiB .n8n folder; execution data lives in PostgreSQL.
  • n8n (main) · Heavy: RAM: n8n Cloud Enterprise tier gives an instance 4096 MiB (4 GiB). vCPU: the full 2-vCPU c5a.large (4 GiB) that n8n used for its single-instance benchmark (up to 220 executions/s on a simple webhook workflow). Disk as light: 1 GiB image + 0.25 GiB .n8n folder.
  • n8n task runners (external) · Light: No upstream figure for the n8nio/runners sidecar. RAM: one Node.js process like n8n itself (~180 MiB documented baseline) rounded up to 0.25 GiB. vCPU: half of the n8n main figure, since it runs only Code-node tasks (up to 5 at once by default). Disk: image 191 MB compressed × 3 rounded up to 0.75 GiB; no data volume.
  • n8n task runners (external) · Medium: Light runner figures × 2, the same ratio as n8n main RAM between the 10k and 50k Cloud tiers (640 → 1280 MiB). Disk unchanged: 0.75 GiB image, no data volume.
  • n8n task runners (external) · Heavy: RAM: light runner 0.25 GiB × 6.4, the ratio of n8n main RAM between the 10k-execution and Enterprise Cloud tiers (640 → 4096 MiB). vCPU: half of the n8n main figure. Disk unchanged: 0.75 GiB image, no data volume.
  • PostgreSQL · Light: Embedded metadata DB with the image's default config: equals the PostgreSQL profile's light preset (≤ 5 GB data, ≤ 20 concurrent connections) at every load level. Light preset method: shared_buffers 25% of RAM, worst-case work_mem/maintenance_work_mem budget, 0.5 GiB image + 5 GiB data + 1 GiB WAL.
  • PostgreSQL · Medium: Embedded metadata DB with the image's default config: equals the PostgreSQL profile's light preset (≤ 5 GB data, ≤ 20 concurrent connections) at every load level. Light preset method: shared_buffers 25% of RAM, worst-case work_mem/maintenance_work_mem budget, 0.5 GiB image + 5 GiB data + 1 GiB WAL.
  • PostgreSQL · Heavy: Embedded metadata DB with the image's default config: equals the PostgreSQL profile's light preset (≤ 5 GB data, ≤ 20 concurrent connections) at every load level. Light preset method: shared_buffers 25% of RAM, worst-case work_mem/maintenance_work_mem budget, 0.5 GiB image + 5 GiB data + 1 GiB WAL.
  • queue-mode · Redis (queue broker): RAM: empty Redis ~3 MB plus 1.5 × the 64 MiB webhook-response relay limit (n8n's budget per large response in flight) = ~99 MiB, rounded up to 0.25 GiB. vCPU: Redis is rarely CPU-bound (Redis FAQ), so a quarter vCPU. Disk: 16 MB compressed image × 3 plus an RDB snapshot no larger than the 0.25 GiB dataset, rounded up to 0.5 GiB.
  • queue-mode · n8n worker: A worker is a full n8n process that runs executions, at default concurrency 10. Sized like the n8n main medium preset (up to 20 concurrent executions): 1 vCPU, 1.25 GiB (Cloud 50k tier 1280 MiB), and the same 1.25 GiB disk (same image + .n8n folder).
  • queue-mode · n8n task runners (worker sidecar): Each worker needs its own n8nio/runners sidecar (n8n task-runner docs). Sized like the runner at the medium preset: 0.5 vCPU, 0.5 GiB, 0.75 GiB image disk.

Options that change resources

queue-mode

Queue mode (EXECUTIONS_MODE=queue): the main process only receives triggers and webhooks, and Redis hands executions to a worker. Adds Redis, one worker (default concurrency 10) and the worker's own task-runner sidecar. Each extra worker adds another worker + runner pair. Requires PostgreSQL.

Default: off

Ports

Public ports are meant to be reached from outside the stack, usually through a reverse proxy; internal ones stay on the stack's own network.

ComponentPortExposurePurposeSources
n8n (main)5678/tcpPublic, through a proxyEditor UI, REST API and webhooks (HTTP; put behind a TLS reverse proxy)[3][25][27]
n8n (main)5679/tcpInternal onlyTask broker that the external task-runner sidecar connects to[5][23]
PostgreSQL5432/tcpInternal onlyPostgreSQL connections from n8n main and workers[5][20]
Redis (queue broker)6379/tcpInternal onlyQueue-mode job broker (Bull queue) between main and workers[15]
n8n worker5678/tcpInternal onlyWorker server: /healthz, readiness and /metrics endpoints[15][16]
n8n worker5679/tcpInternal onlyWorker task broker for its own task-runner sidecar[6][23]

Every port in the catalog, with conflicts between apps

User and permissions (UID/GID)

The user each container's process runs as, and the paths it writes to. A bind mount for one of these paths must be writable by that UID:GID.

ComponentUID:GIDUserStarts as rootWrites toSources
n8n (main)Derived1000:1000nodeNo/home/node/.n8n[5][29][31]
n8n task runners (external)1000:1000runnerNo—[30]
PostgreSQL999:999postgresYes, prepares its directories, then drops to this user/var/lib/postgresql/var/run/postgresql[34][35][48]
Redis (queue broker)999:1000redisYes, prepares its directories, then drops to this user/data[32][33]
n8n workerDerived1000:1000nodeNo/home/node/.n8n[29][31]
n8n task runners (worker sidecar)1000:1000runnerNo—[30]
  • n8n (main): The image runs as USER node (no root entrypoint) and owns /home/node; n8n's OpenShift guide names UID 1000 as the node user the image expects. The gid 1000 is taken from the same guide's fsGroup 1000; a bind mount for /home/node/.n8n must be writable by 1000:1000.
  • n8n worker: Same image as n8n main, so the same node user (UID 1000, gid from fsGroup 1000). The template mounts no volume for the worker; /home/node/.n8n is the n8n user folder the image creates and n8n writes its settings file to.

Permission denied on a mount? Get the exact check and chown for this app

Storage growth

How much each component's data grows per month at each load level, on top of the disk in the profile. A value marked Assumption is ANAROQ's stated assumption, not a figure from the sources; the notes say what it rests on.

GiB per month
ComponentLightMediumHeavySources
PostgreSQLAssumption0.050.10.25[18]
What the growth figures rest on
  • PostgreSQL: Default pruning (336 h or 10,000 executions) caps stored executions at every level, so execution data levels off within weeks. What still grows is workflow history, annotated executions (never pruned) and table bloat. n8n gives no size per execution; the figure is an ANAROQ assumption.

Upgrade and rollback

How to move to a new version safely, and how to go back if it fails.

Back up first

Take a full backup first: the n8n data volume (/home/node/.n8n, which holds the encryption key) and a dump of the PostgreSQL database. Keep N8N_ENCRYPTION_KEY with it. [38]

Upgrade steps

  1. Read the release notes of every version you skip for breaking changes, and test the update on a copy of the instance first. Update at least monthly to avoid large jumps. [36]
  2. Set the same new version on both n8nio/n8n (main and worker) and n8nio/runners (runner and worker-runner): the runners image version must match n8n. [22]
  3. Run docker compose pull, then docker compose down, then docker compose up -d. [37]

Roll back

Go back to the previous image tags. If the update ran database migrations, either run n8n db:revert on the new version once per migration before switching back, or stop the stack and restore the .n8n volume and the PostgreSQL backup taken before the update. [38][39]Derivedn8n documents db:revert for npm installs and says a full backup is used to roll back a failed update; running db:revert inside the container is ANAROQ's application of the npm procedure to Docker.

Known breaking changes

  • In 2.0.0: Task runners are on by default and the runner was removed from the n8nio/n8n image (use n8nio/runners in external mode); MySQL/MariaDB support was dropped (migrate to PostgreSQL first); the in-memory binary data mode was removed. [40]
  • In 2.0.0: Safer defaults: Code nodes can't read environment variables, the settings file permissions are enforced, ExecuteCommand and LocalFileTrigger are disabled, OAuth callbacks need authentication, and file access is restricted to N8N_RESTRICT_FILE_ACCESS_TO. [40]

Limits

  • n8n doesn't limit how much data a node fetches. Large JSON or binary data, Code nodes and manual runs can exhaust memory (JavaScript heap out of memory). Split data into batches or raise the V8 heap with NODE_OPTIONS=--max-old-space-size. [19]
  • In regular mode n8n doesn't limit concurrent production executions by default. Set N8N_CONCURRENCY_PRODUCTION_LIMIT to the concurrency of the chosen preset. [17]
  • Queue mode needs PostgreSQL (not SQLite) and doesn't support filesystem binary-data storage. Use S3 external storage for binary data in queue mode. [15]
  • The bundled PostgreSQL is sized for up to 5 GB of data. Keep execution pruning on (defaults: 336 hours, 10,000 executions) or save only failed executions. Otherwise the database keeps growing. [18][43]

Security

  • Don't publish port 5678 directly. n8n serves plain HTTP by default. Put it behind a reverse proxy (Traefik, Caddy, a load balancer) that terminates TLS and renews certificates. [25][27]
  • Run task runners in external mode (n8nio/runners sidecar). Without it, anyone who can edit a workflow could read the database, the encryption key, stored credentials and environment variables. [22]
  • Keep PostgreSQL (5432), Redis (6379) and the task broker (5679) on the internal network only. Redis has no password by default, so set QUEUE_BULL_REDIS_PASSWORD if Redis is reachable beyond the stack. [15][23]

Backup

  • Back up the encryption key (N8N_ENCRYPTION_KEY, or the key n8n generated in /home/node/.n8n). Without it, the stored credentials can't be decrypted. Main and all workers must use the same key. [3][15][26]
  • Back up the PostgreSQL database (workflows, credentials, execution history), for example with pg_dumpall, and always before a PostgreSQL major upgrade or encryption-key rotation. [4][20][25]
  • Keep the n8n_storage volume (/home/node/.n8n) even with PostgreSQL: it still holds the encryption key, instance logs and source-control assets. [3][5]

Latest release

Newest upstream release
n8n 3.4.2 [41]
This profile was checked against

n8n 2.42.6

A newer release exists than the one this profile was checked against.

Checked on
2 Dec 2026
State
Checked within the last 90 days
Where releases are published
GitHub Releases

Latest releases of every app

Version

Profile status
Published
Checked against release
n8n 2.42.6
Profile version
1.1.0
Figures verified
10 Oct 2026
Catalog release
2026.10.10
Sizing policy
2026.10.0
Compose file
Verified on 12 Oct 2026
Official site
n8n.io

Sources

  1. Docker Docs: Control startup order in Compose (pg_isready healthcheck, service_healthy) (Official docs · read 11 Oct 2026)
  2. n8n Docs: Endpoints environment variables (N8N_WEBHOOK_URL; WEBHOOK_URL deprecated in 2.35.0; /healthz) (Official docs · read 11 Oct 2026)
  3. n8n Docs: Install with Docker (current stable 2.42.6, port 5678, .n8n volume) (Official docs · read 10 Oct 2026)
  4. n8n Docs: Install using Docker Compose (PostgreSQL for production) (Official docs · read 10 Oct 2026)
  5. n8n-hosting: docker-compose/withPostgres (n8n + postgres + n8nio/runners) (Official Compose · read 10 Oct 2026)
  6. n8n-hosting: docker-compose/withPostgresAndWorker (queue mode with Redis and worker) (Official Compose · read 10 Oct 2026)
  7. npm registry: n8n package dist-tags (latest/stable 2.42.6, next 2.43.3) (Official repository · read 10 Oct 2026)
  8. Docker Hub: n8nio/n8n tag 2.42.6 (same digest as stable/latest; compressed size) (Official repository · read 10 Oct 2026)
  9. Docker Hub: n8nio/runners tag 2.42.6 (compressed size) (Official repository · read 10 Oct 2026)
  10. Docker Hub: library/redis tag 7-alpine (compressed size) (Official repository · read 10 Oct 2026)
  11. n8n Docs: Manage your data (Cloud plan memory limits; n8n alone uses ~180 MiB) (Official docs · read 10 Oct 2026)
  12. n8n Docs: Deploy to AWS (pod memory request 250Mi / limit 500Mi; Cloud tier table) (Official docs · read 10 Oct 2026)
  13. n8n Docs: Measure performance (single instance on c5a.large with Postgres) (Official docs · read 10 Oct 2026)
  14. Amazon EC2 C5 instances: c5a.large = 2 vCPU, 4 GiB (Official docs · read 10 Oct 2026)
  15. n8n Docs: Enable queue mode (Redis, workers, concurrency 10, relay size 64 MiB) (Official docs · read 10 Oct 2026)
  16. n8n Docs: Queue mode environment variables (QUEUE_HEALTH_CHECK_PORT) (Official docs · read 10 Oct 2026)
  17. n8n Docs: Control concurrency (unlimited by default in regular mode) (Official docs · read 10 Oct 2026)
  18. n8n Docs: Manage execution data (pruning: 336 h / 10,000 executions) (Official docs · read 10 Oct 2026)
  19. n8n Docs: Fix memory issues (Official docs · read 10 Oct 2026)
  20. n8n Docs: Choose n8n's database (SQLite default, PostgreSQL 16-18) (Official docs · read 10 Oct 2026)
  21. n8n Docs: Database environment variables (DB_POSTGRESDB_POOL_SIZE default 2) (Official docs · read 10 Oct 2026)
  22. n8n Docs: Set up task runners (external mode sidecar per instance) (Official docs · read 10 Oct 2026)
  23. n8n Docs: Task runner environment variables (broker port 5679, max concurrency 5) (Official docs · read 10 Oct 2026)
  24. n8n Docs: Logs environment variables (event log 3 files × 10,240 KB) (Official docs · read 10 Oct 2026)
  25. n8n Docs: Deployment environment variables (N8N_PORT, N8N_ENCRYPTION_KEY) (Official docs · read 10 Oct 2026)
  26. n8n Docs: Set a custom encryption key (Official docs · read 10 Oct 2026)
  27. n8n Docs: Set up SSL (reverse proxy recommended) (Official docs · read 10 Oct 2026)
  28. Redis FAQ (memory footprint of an empty instance; CPU rarely the bottleneck) (Official docs · read 10 Oct 2026)
  29. n8n repository: docker/images/n8n/Dockerfile at [email protected] (chown node:node /home/node, USER node) (Official repository · read 13 Oct 2026)
  30. n8n repository: docker/images/runners/Dockerfile at [email protected] (user runner, uid/gid 1000) (Official repository · read 13 Oct 2026)
  31. n8n Docs: Deploy to OpenShift Local (the image expects UID 1000, the node user; fsGroup 1000) (Official docs · read 13 Oct 2026)
  32. redis/docker-library-redis: alpine/Dockerfile for 7.4.11 / 7-alpine (redis uid 999, gid 1000; /data) (Official repository · read 13 Oct 2026)
  33. redis/docker-library-redis: alpine/docker-entrypoint.sh for 7-alpine (chown, then setpriv to redis) (Official repository · read 13 Oct 2026)
  34. docker-library/postgres: 18/trixie Dockerfile (postgres uid/gid 999, VOLUME /var/lib/postgresql) (Official repository · read 13 Oct 2026)
  35. docker-library/postgres: 18/trixie docker-entrypoint.sh (chown PGDATA, then gosu postgres) (Official repository · read 13 Oct 2026)
  36. n8n Docs: Update n8n (update monthly, check release notes, test first) (Official docs · read 13 Oct 2026)
  37. n8n Docs: Install with Docker, Updating Docker Compose (pull, down, up -d) (Official docs · read 13 Oct 2026)
  38. n8n Docs: Back up and restore (.n8n folder + PostgreSQL; full backup before updating) (Official docs · read 13 Oct 2026)
  39. n8n Docs: Install with npm, Reverting an upgrade (n8n db:revert) (Official docs · read 13 Oct 2026)
  40. n8n Docs: v2.0 breaking changes (Release notes · read 13 Oct 2026)
  41. GitHub Releases: n8n-io/n8n release [email protected] (marked Latest; the 'stable' release points to release/3.4.2) (Release notes · read 2 Dec 2026)
  42. n8n Docs: Use n8n Cloud (hosted n8n by n8n: trial, plans, instance management) (Official docs · read 13 Oct 2026)
  43. PostgreSQL 18 documentation: 19.4 Resource Consumption (Official docs · read 10 Oct 2026)
  44. PostgreSQL 18 documentation: 19.3 Connections and Authentication (Official docs · read 10 Oct 2026)
  45. PostgreSQL 18 documentation: 19.10 Vacuuming (autovacuum settings) (Official docs · read 10 Oct 2026)
  46. PostgreSQL 18 documentation: 19.5 Write Ahead Log (max_wal_size) (Official docs · read 10 Oct 2026)
  47. PostgreSQL 18 documentation: 51.2 How Connections Are Established (Official docs · read 10 Oct 2026)
  48. Docker Official Image postgres: documentation (docker-library/docs) (Official docs · read 10 Oct 2026)
  49. Docker Hub: library/postgres tag 18.6 (compressed image sizes) (Official repository · read 10 Oct 2026)

All self-hosted apps