Deploy n8n V2 with Workers

n8n 2.0 Pro Stack. n8n with Workers, PostgreSQL and Redis.

Deploy n8n V2 with Workers

Just deployed

Just deployed

/bitnami

Just deployed

/var/lib/postgresql/data

Deploy and Host N8N V2 (2.20.9) (w/ workers) on Railway

For an n8n 2.x queue-mode installation on Railway, use n8n V2 with Workers. It pins n8n 2.20.9 and deploys a main editor/API service, a separate execution worker, PostgreSQL and Redis. This four-service template fits version-2 workflow deployments with separate execution capacity. Configure the credentials needed by your own integrations; the n8n 3.0 stack, external runners and SearXNG are a separate deployment choice.

About Hosting N8N V2 (2.20.9) (w/ workers)

This template provisions a production‑grade N8N 2.20.9 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 V2 (2.20.9) (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

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_NODE and N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS are 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 V2 (2.20.9) (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 V2 (2.20.9) (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.

Other deployment choices from this publisher


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
120
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
104
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
867