Deploy n8n v2 (Postgres + Redis + Workers)
Distributed n8n v2 setup with Postgres, Redis and worker execution
n8n_primary
Just deployed
Redis
Just deployed
/data
n8n_worker
Just deployed
Just deployed
/var/lib/postgresql/data
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
- n8n v2 Docker image
https://hub.docker.com/r/n8nio/n8n - Redis (Railway managed service)
- Postgres (Railway managed service)
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
