Deploy n8n v2 (Postgres + Redis + Workers)

Distributed n8n v2 setup with Postgres, Redis and worker execution

Deploy n8n v2 (Postgres + Redis + Workers)

n8n_primary

n8nio/n8n:2.1.1

Just deployed

Just deployed

/data

n8n_worker

n8nio/n8n:2.1.1

Just deployed

/var/lib/postgresql/data

n8n header

Deploy and Host n8n v2 (Postgres + Redis + Workers) on Railway

n8n v2 (Postgres + Redis + Workers) is a distributed n8n setup using Postgres for persistence, Redis for queue coordination, and workers for scalable workflow execution.


About Hosting n8n v2 (Postgres + Redis + Workers)

Hosting n8n v2 with Postgres, Redis, and workers enables a scalable and production-ready workflow automation platform.
This setup separates concerns by using Postgres for durable state, Redis for queue-based execution, and one or more workers to process workflows asynchronously.

It is well suited for environments with moderate to high execution volume, concurrent workflows, or long-running tasks.
Railway simplifies deployment by managing networking, secrets, health checks, and scaling, allowing you to focus on building and operating workflows instead of infrastructure.


Common Use Cases

  • Event-driven automations using webhooks and background processing
  • Scheduled jobs and batch workflows with high concurrency
  • API integrations and data synchronization pipelines
  • Internal automation platforms for teams or organizations

Dependencies for n8n v2 (Postgres + Redis + Workers) Hosting

  • Postgres — persistent database for workflows, executions, and credentials
  • Redis — queue backend for distributed workflow execution
  • n8n workers — background processors for queued executions

Deployment Dependencies


Why Deploy n8n v2 (Postgres + Redis + 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 (Postgres + Redis + 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

More templates in this category

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

View Template
Postgres S3 backups
A simple NodeJS app to back up your PostgreSQL database to S3 via a cron

View Template
Prefect [Updated Dec ’25]
Prefect [Dec ’25] (ETL & Automation alternative to Airflow) Self Host