Automation, checked 2026-10-17

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.43.72026-10-16NoSuspends in-flight production executions at worker shutdown.source for release n8n@2.43.7
n8n@2.43.62026-10-15NoBug fix creating a fresh XML parser for each webhook request body.source for release n8n@2.43.6
n8n@2.43.52026-10-14NoValidates the size argument of the chunk() expression extension and lists Gemini models by name in model pickers.source for release n8n@2.43.5
n8n@1.123.852026-10-14NoMaintenance release on the older 1.123.x line with the same chunk() validation fix and Gemini model picker change.source for release n8n@1.123.85
n8n@2.43.42026-10-12NoBug fix handling each Chat Hub segment once in queue mode and resuming tool calls for deferred tools a skill loaded.source for release n8n@2.43.4

If it is not coming up

Read from the upstream documentation, repository and container registry by Keita Emsden on 2026-10-17. 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