n8n Docker: configure the documented Compose setup
Workflow automation with 1,500+ integrations and built-in AI agent nodes.
Quick answer
n8n is a workflow automation with 1,500+ integrations and built-in AI agent nodes, listed under Workflow automation with AI. A typical small-business use: summarise new support tickets with an LLM and route them to the right person. In our own test (n8n 2.44.6, Docker, Oct 22, 2026) it used about 412 MiB of RAM at idle and up to 607 MiB while working. That is our measurement, not an official figure. The project publishes no official RAM figure. With headroom added to the RAM we measured, a Hetzner Cloud CPX12 (1 vCPU, 2 GB) at about €9.99/month should be enough. That is our estimate from the test, not the project's (server only, excl. VAT). License: Sustainable Use License (fair-code) + n8n Enterprise License for .ee files, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Dec 6, 2026.
What is n8n?
n8n is a node-based automation tool, similar to Zapier or Make, that you can host yourself. Workflows can call LLMs, run AI agents and mix them with ordinary steps such as CRM updates, spreadsheets, email and webhooks. It is "fair-code": the source is public but the license limits commercial resale.
Where it fits in a 10–200 person business
- Summarise new support tickets with an LLM and route them to the right person
- Enrich incoming leads and draft a first reply automatically
- Nightly job that classifies invoices or emails and files them
These use cases are our editorial suggestions, not claims made by the project.
Can a business use n8n? (license)
| License | Sustainable Use License (fair-code) + n8n Enterprise License for .ee files |
|---|---|
| Type | Source-available: Code is public but commercial resale is restricted. |
| Internal business use | Allowed under the license text |
| What to watch | You may use or modify n8n for your own internal business purposes or for non-commercial use. You may not sell it or offer it to others as a paid service. Files with ".ee" in the name need an n8n Enterprise License. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does n8n phone home?
| Telemetry (usage data sent to the vendor) | On by default A self-hosted instance sends diagnostics to n8n's servers by default. How to turn it off: Set N8N_DIAGNOSTICS_ENABLED=false and unset N8N_DIAGNOSTICS_CONFIG_FRONTEND / N8N_DIAGNOSTICS_CONFIG_BACKEND. Source: docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/configuration-examples/isolate-n8n |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Yes, by default By default it also contacts n8n's servers for update notifications and workflow templates. How to turn it off: Set N8N_VERSION_NOTIFICATIONS_ENABLED=false and N8N_TEMPLATES_ENABLED=false. Source: docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/configuration-examples/isolate-n8n |
| Single sign-on (OIDC / SAML / LDAP) | Paid / enterprise only By protocol: OIDC paid · SAML paid · LDAP paid. SAML needs a Business or Enterprise plan, OIDC an Enterprise plan, LDAP (self-hosted) Business or Enterprise. Source: docs.n8n.io/administer/manage-users-and-access/verify-user-identity/use-saml · docs.n8n.io/administer/manage-users-and-access/verify-user-identity/use-oidc/set-up-oidc · docs.n8n.io/administer/manage-users-and-access/verify-user-identity/connect-ldap |
| Audit log | Paid / enterprise only Streaming audit and workflow events to external systems (log streaming) is Enterprise-only on self-hosted. Source: docs.n8n.io/administer/observe-and-log/stream-logs-to-external-systems |
| Role-based access control (RBAC) | Paid / enterprise only Project Editor and Project Viewer roles need self-hosted Enterprise. Source: docs.n8n.io/administer/manage-users-and-access/set-permissions-and-roles-rbac/see-available-roles |
| Data residency / GDPR notes from the project | Not documented |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does n8n need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
Our measurement measured: 412 MiB RAM at idle, 607 MiB while working (n8n 2.44.6, Oct 22, 2026). Full test results.
Workflow memory depends on the workload. The current Assistant Compose example specifies 2 vCPUs and 4 GB RAM for that stack, not a universal minimum for every n8n deployment.
Source: docs.n8n.io/deploy/host-n8n/install-options/install-using-docker-compose
Tested by SelfHostMap
Measured, not officialWe deployed n8n 2.44.6 ourselves on using the official Docker instructions, and measured what it actually used. Your numbers will vary with your data, users and hardware. How we test.
| Version / image | n8nio/n8n:latest → n8n 2.44.6 (sha256:d02752c6ab44…) |
|---|---|
| Test machine | Intel Xeon (Sapphire Rapids class, AVX-512 + AMX), 8 vCPU, 16 GB RAM (shared), GPU: none (CPU only). Debian 13 (trixie), Linux 6.12, Docker Engine 29.9.2. Container capped at 2.0 GiB. |
| RAM at idle measured | 412 MiB · 2 minutes after start, owner account created, one workflow saved, nothing running. |
| RAM while working measured | 607 MiB · Highest reading while using the editor in a browser (login, open workflow, executions list). Running 200 webhook executions (8 in parallel, each a Code node building 5,000 items) used 517–525 MiB and finished in 3.5 s. |
| Highest reading measured | 687 MiB · First 30 seconds of the first boot (database migrations and task runner start). |
| Image size | 280 MB download, 1.82 GB on disk once unpacked |
| Data on disk after test | 8 MB |
| Time to first start | 9.5 s with the image already downloaded · From docker run until the log said "Editor is now accessible" (first boot, empty volume). /healthz already answered 200 after 5.1 s, while database migrations were still running. Including the image download: 31.2 s (download took 21.7 s on our datacenter connection; yours depends on your network). |
Cost based on our test: 607 MiB working RAM × 1.5 + 512 MiB for the OS and Docker ≈ 1.4 GiB → Hetzner Cloud CPX12 (1 vCPU, 2 GB) at about €9.99/month our estimate. The project itself publishes no RAM figure.
What we ran into
- The official command runs n8n in the foreground and deletes the container on exit
The docs use docker run -it --rm. That is fine for a try-out, but closing the terminal stops n8n.
Fix: For a server use -d --restart unless-stopped (or Docker Compose). Your data survives because it lives in the n8n_data volume.
- Python in the Code node does not work out of the box
Failed to start Python task runner in internal mode. because Python 3 is missing from this system.Fix: JavaScript Code nodes work. For Python, run n8n's task runners in external mode, as the log message links to.
- Internal task-runner mode is deprecated
N8N_RUNNERS_MODE -> Internal task runner mode is deprecated and will be removed in a future version.Fix: Nothing breaks today. Plan to move to external task runners before a future major upgrade.
- The health endpoint answers before n8n is fully ready
/healthz returned 200 about 4 seconds before the log said the editor was accessible.
Fix: If a proxy or script waits for n8n on first boot, wait for the "Editor is now accessible" log line or retry for a few seconds.
- A webhook called right after activating the workflow returned 404
The requested webhook "GET bench" is not registered.Fix: It worked about 2 seconds later. Wait a moment after activating before testing a production webhook URL.
Exact command we ran
docker volume create n8n_data
docker run -d --name n8n --memory 2g -p 5678:5678 \
-e GENERIC_TIMEZONE=Asia/Shanghai -e TZ=Asia/Shanghai \
-e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
-v n8n_data:/home/node/.n8n \
n8nio/n8n:latest Official docs command, with -d instead of -it --rm and a 2 GB memory cap.
How much does it cost to host n8n per month?
The project publishes no official RAM figure, so there is no official-spec estimate. Instead we use the RAM we measured in our own test:
| Based on our test our estimate | 607 MiB working RAM × 1.5 + 512 MiB ≈ 1.4 GiB → CPX12 (1 vCPU, 2 GB, 40 GB disk) €9.99/mo |
|---|
How we got this: the cheapest Hetzner Cloud Regular Performance (shared AMD vCPU) plan with at least that much RAM, using prices read from www.hetzner.com/cloud/regular-performance on 2026-11-30. "From" monthly price cap shown by Hetzner, excluding VAT. Prices vary by location. Covers the server only; it excludes LLM API usage, backups, extra storage, GPUs and your time. The headroom covers the OS, Docker and spikes; heavier workflows, more users or bigger models need more. Method.
How to deploy n8n
The current recommended Compose guide includes the Assistant sandbox stack. Prepare its configuration before running the commands below. Its bundled sandbox is for development and testing; follow the linked official guide for production alternatives.
Method: Docker Compose (configure from official guide first)
# First create the project, .env, TLS configuration and compose.yml
# from the official Compose guide, replacing its versions and secrets.
# Run from that configured project directory, not an empty folder.
test -f .env && test -f compose.yml || exit 1
docker compose up -d
docker compose ps From the official instructions: docs.n8n.io/deploy/host-n8n/install-options/install-using-docker-compose. Always check the source for the current version before you run it.
Known gotchas when self-hosting n8n
- The current Assistant Compose example uses a privileged sandbox runner for development and testing. Follow the official production sandbox guidance rather than treating that example as a hardened production stack. source
- Large payloads, the Code node and manual executions increase memory use and can cause "JavaScript heap out of memory" errors. source
- The Sustainable Use License allows internal business use only; reselling n8n or hosting it for paying customers is not licensed. source
Alternatives in Workflow automation with AI
- Activepieces Open-source Zapier alternative with AI agents, MCP and human-in-the-loop steps. Compare Activepieces vs n8n
- Skyvern Browser automation agent that uses LLMs and computer vision to fill forms and run workflows on websites. Compare n8n vs Skyvern
- Windmill Open-source developer platform for scripts, workflows, AI agents and internal apps, self-hostable. Compare n8n vs Windmill
- Trigger.dev Platform for background jobs, scheduled tasks and long-running AI agent workflows written in TypeScript. Compare n8n vs Trigger.dev
- Browser Use Web UI Local browser-agent interface with Docker, VNC and configurable model endpoints. Compare Browser Use Web UI vs n8n
Plan your deployment
Use these guides to check the model, hardware and operating decisions alongside the app comparison.
n8n FAQ
How much RAM does n8n need?
n8n does not publish an official RAM figure. Workflow memory depends on the workload. The current Assistant Compose example specifies 2 vCPUs and 4 GB RAM for that stack, not a universal minimum for every n8n deployment. In our own test (n8n 2.44.6, Docker, Oct 22, 2026) it used about 412 MiB of RAM at idle and up to 607 MiB while working. That is our measurement, not an official figure.
How much does it cost to self-host n8n?
The software is free to download. The project publishes no official RAM figure. With headroom added to the RAM we measured, a Hetzner Cloud CPX12 (1 vCPU, 2 GB) at about €9.99/month should be enough. That is our estimate from the test, not the project's (server only, excl. VAT).
Is n8n free for commercial use?
n8n is licensed under Sustainable Use License (fair-code) + n8n Enterprise License for .ee files (Source-available). Internal business use is allowed under the license text. You may use or modify n8n for your own internal business purposes or for non-commercial use. You may not sell it or offer it to others as a paid service. Files with ".ee" in the name need an n8n Enterprise License. This is a summary, not legal advice.
What are common problems when self-hosting n8n?
The current Assistant Compose example uses a privileged sandbox runner for development and testing. Follow the official production sandbox guidance rather than treating that example as a hardened production stack. Large payloads, the Code node and manual executions increase memory use and can cause "JavaScript heap out of memory" errors. The Sustainable Use License allows internal business use only; reselling n8n or hosting it for paying customers is not licensed.
What went wrong when SelfHostMap deployed n8n?
In our test of n8n 2.44.6 on Oct 22, 2026: The official command runs n8n in the foreground and deletes the container on exit. For a server use -d --restart unless-stopped (or Docker Compose). Your data survives because it lives in the n8n_data volume. Python in the Code node does not work out of the box. JavaScript Code nodes work. For Python, run n8n's task runners in external mode, as the log message links to. Internal task-runner mode is deprecated. Nothing breaks today. Plan to move to external task runners before a future major upgrade. The health endpoint answers before n8n is fully ready. If a proxy or script waits for n8n on first boot, wait for the "Editor is now accessible" log line or retry for a few seconds. A webhook called right after activating the workflow returned 404. It worked about 2 seconds later. Wait a moment after activating before testing a production webhook URL.
Is n8n still maintained?
Yes, it is actively developed. Last commit: Dec 6, 2026. Latest release: [email protected] (Dec 4, 2026). Checked Dec 6, 2026.
How do I install n8n?
The official method is Docker Compose (configure from official guide first). The exact commands are in the "How to deploy" section above and in the official instructions: https://docs.n8n.io/deploy/host-n8n/install-options/install-using-docker-compose
What are self-hosted alternatives to n8n?
Other apps in Workflow automation with AI: Activepieces, Skyvern, Windmill, Trigger.dev, Browser Use Web UI.
Sources
- GitHub repository: github.com/n8n-io/n8n
- Official documentation, Hardware requirements, Deploy instructions, Gotcha 1: docs.n8n.io/deploy/host-n8n/install-options/install-using-docker-compose
- License text, Gotcha 3: github.com/n8n-io/n8n/blob/master/LICENSE.md
- Gotcha 2: docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/fix-memory-issues
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-12-01. Spotted something out of date? Tell us.

