Automation, checked 2026-09-07

n8n: Docker configuration reference

Self-hosted workflow automation with a visual editor, hundreds of integrations and an AI agent node.

At a glance

Ports

Ports
PortWhat listensSource
5678HTTP listener for the editor, the REST API and webhooks. Route the proxy here.source for port 5678

Environment variables

Environment variables
VariableRequiredWhat it doesExampleSource
N8N_HOSTNoHost name n8n runs on. Combined with N8N_PROTOCOL and N8N_PORT to build the webhook URL internally.n8n.example.comsource for N8N_HOST
N8N_WEBHOOK_URLNoPublic URL n8n advertises for webhooks. Required behind a reverse proxy, since the internal host:port combination is wrong there. Replaces the deprecated WEBHOOK_URL from n8n 2.35.0.https://n8n.example.com/source for N8N_WEBHOOK_URL
N8N_PROXY_HOPSNoNumber of reverse proxies in front of n8n. Set to 1 behind a single proxy so client IPs and protocol are read correctly.1source for N8N_PROXY_HOPS
N8N_ENCRYPTION_KEYNoKey used to encrypt stored credentials. n8n generates a random one on first launch if unset; set it explicitly so a redeploy does not lose access to existing credentials.openssl rand -hex 32source for N8N_ENCRYPTION_KEY
N8N_PUSH_BACKENDNoHow the backend pushes live changes to the editor UI: websocket or sse. Defaults to websocket, which the proxy must be configured to upgrade.websocketsource for N8N_PUSH_BACKEND

Volumes that must persist

Volumes
PathWhat is in itSource
/home/node/.n8nWhere n8n saves its SQLite database file and encryption key when not using an external database. Losing this loses every workflow and credential.source for /home/node/.n8n

Behind a reverse proxy

Release timeline

Releases
VersionDateBreakingWhat changedSource
n8n@2.37.102026-09-04NoBug fix release restoring mutating array methods on $json data in expressions.source for release n8n@2.37.10
n8n@2.38.32026-09-03NoBug fix release ensuring running job cleanup when a workflow run rejects.source for release n8n@2.38.3
n8n@2.37.92026-09-03NoBug fix release, part of the same patch train as 2.37.7 through 2.37.10.source for release n8n@2.37.9
n8n@1.123.772026-09-03NoMaintenance release on the older 1.123.x line, bumping browserslist to clear a published CVE.source for release n8n@1.123.77
n8n@2.37.72026-09-02NoBug fix release on the 2.37.x line.source for release n8n@2.37.7

If it is not coming up

Read from the upstream documentation, repository and container registry by Keita Emsden on 2026-09-07. Every row links the page it came from. Upstream changes without telling anyone, so check the source link before you rely on a value.

Other app references

All app references