Deploy N8N 2.0 (2.0.1) (V2 w/ workers)
Prod-ready N8N V2 2.0.1, worker+redis+postgres, secure default, task-runner
n8n-main
Just deployed
Redis
Just deployed
/bitnami
n8n-worker
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host N8N 2.0 (2.0.1) (V2 w/ workers) on Railway
N8N 2.0.1 is the latest major version of the open‑source workflow automation platform, bringing stricter security defaults and task‑runner based code execution. This template deploys a dedicated main service for the editor and API plus a worker service for queue processing, backed by PostgreSQL and Redis for durable, scalable automation.
About Hosting N8N 2.0 (2.0.1) (w/ workers)
This template provisions a production‑grade N8N 2.0.1 stack in queue mode. The main instance exposes the editor and webhooks, while workers consume jobs from a Redis‑backed queue to execute workflows in parallel. PostgreSQL stores workflows, credentials, and execution logs. Security‑oriented defaults are enabled, including environment‑variable blocking inside workflows and stricter settings‑file permissions, aligning with the hardening changes introduced in N8N 2.x. Railway manages networking, TLS termination, and scaling, so you can focus on building automations rather than servers. You can horizontally scale workers as your workload grows, without changing your workflows.
Common Use Cases
- Running business‑critical automations (CRM sync, lead routing, billing, alerts) with isolated workers and reliable retries
- Offloading heavy or long‑running jobs (APIs, data pipelines, AI calls) to background workers without blocking the editor
- Centralising event‑driven workflows (webhooks, schedules, queues) in a secure, self‑hosted automation hub
Dependencies for N8N 2.0 (2.0.1) (w/ workers) Hosting
- PostgreSQL – persistent storage for workflows, credentials, users, and execution history
- Redis – message broker for the Bull queue used by N8N workers
Deployment Dependencies
- N8N documentation: https://docs.n8n.io/
- Environment variable & security options: https://docs.n8n.io/hosting/configuration/environment-variables/security/
- Railway documentation: https://docs.railway.app/
Implementation Details
- N8N runs in queue mode with a main + worker architecture.
- Task runners are enabled to isolate Code node execution.
- Security‑focused variables such as
N8N_BLOCK_ENV_ACCESS_IN_NODEandN8N_ENFORCE_SETTINGS_FILE_PERMISSIONSare used to harden the instance. - The template is tuned for Railway’s managed Postgres and Redis services and expects HTTPS termination at the platform edge.
Why Deploy N8N 2.0 (2.0.1) (w/ workers) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying N8N 2.0 (2.0.1) (w/ workers) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
