Deploy n8n Production Queue-Mode Worker Stack (Postgres + Redis)

High-throughput n8n cluster with BullMQ worker, Postgres & Redis.

Deploy n8n Production Queue-Mode Worker Stack (Postgres + Redis)

n8n-primary

n8nio/n8n:latest

Just deployed

/home/node/.n8n

/var/lib/postgresql/data

Just deployed

Just deployed

/data

Deploy and Host n8n Production Queue-Mode Worker Stack (Postgres + Redis) on Railway

Transparency Notice: Maintained by TCO Audit. Provisioning links via tcoaudit.com/go/* may earn a partner referral commission at zero extra cost to you.

Deploy a production-ready, horizontally scalable n8n cluster on Railway with dedicated BullMQ Redis workers, persistent PostgreSQL storage, shared N8N_ENCRYPTION_KEY, and /healthz probes—cutting 36-month automation TCO by 65%–82% vs. per-step SaaS billing.

About Hosting n8n Production Queue-Mode Worker Stack (Postgres + Redis)

Hosting n8n in production queue mode separates webhook ingestion and scheduling from heavy workflow execution. This template provisions four coordinated services out of the box:

  1. n8n-primary — Web UI, webhook receiver, and scheduler (EXECUTIONS_MODE=queue, /home/node/.n8n persistent volume, /healthz probe, port 5678).
  2. n8n-worker — Dedicated BullMQ execution worker sharing the identical N8N_ENCRYPTION_KEY via ${{n8n-primary.N8N_ENCRYPTION_KEY}}.
  3. PostgreSQL — Durable workflow, credential, and execution history store.
  4. Redis — Low-latency BullMQ job broker for reliable background processing.

Common Use Cases

  • High-volume webhook ingestion and asynchronous workflow execution without blocking the n8n editor UI.
  • Self-hosted SaaS replacement for Zapier or Make to eliminate per-step automation surcharges—run your exact monthly task volume through the TCO Audit SaaS Tax Calculator.
  • Automated transactional email pipelines, lead enrichment, and scheduled web extraction workflows using dedicated background workers.

Dependencies for n8n Production Queue-Mode Worker Stack (Postgres + Redis) Hosting

  • PostgreSQL 16 — Persistent relational database for workflows, encrypted credentials, and execution logs.
  • Redis — In-memory BullMQ queue broker coordinating jobs between n8n-primary and n8n-worker.

Recommended Post-Deploy API Connectors

Why Deploy n8n Production Queue-Mode Worker Stack (Postgres + Redis) 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 your n8n workers, PostgreSQL database, and Redis broker independently.

By deploying n8n Production Queue-Mode Worker Stack (Postgres + Redis) on Railway, you are one step closer to supporting a complete full-stack automation platform with minimal operational burden.


Template Content

More templates in this category

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

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

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

Railway Templates
866