---
title: "Deploy N8N with workers [Aug ’26]"
description: "[Updated Aug '26] Deploy and Host N8N with Workers with one click."
category: "Automation"
url: https://railway.com/deploy/n8n-with-workers-and-queue-redis-postgre
---

# Deploy N8N with workers [Aug ’26]

[Updated Aug '26] Deploy and Host N8N with Workers with one click.

**[Deploy N8N with workers [Aug ’26] on Railway](https://railway.com/template/n8n-with-workers-and-queue-redis-postgre)**

- **Creator:** shinyduo's Projects
- **Category:** Automation
- **Total deploys:** 31

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### N8N UI

- **Source:** https://github.com/Shinyduo/n8n-railway-updated
- **Public domain:** Yes

### N8N Worker

- **Source:** https://github.com/Shinyduo/n8n-railway-updated
- **Start command:** `n8n worker`

## Documentation

# Deploy and Host N8N with Workers

## What is N8N?

**N8N with Workers** is a scalable, production-ready n8n automation setup using distributed workers for parallel task execution. Redis is used as the job queue/broker to manage task distribution, while PostgreSQL provides durable, reliable storage for workflows, logs, and execution data. This high-availability architecture enables efficient workflow handling, parallelism, and large-scale automation suitable for robust enterprise use.

## About Hosting N8N with Workers

Deploying N8N with Workers on Railway involves running n8n in queue mode alongside multiple distributed worker containers. Redis handles job distribution, while PostgreSQL serves as the workflow database. With Railway, you can easily orchestrate these services through managed templates, configure environment variables for seamless integration, and enable persistent storage with resilient backups. Railway’s scalable infrastructure allows you to add more worker containers as automation workloads increase, ensuring reliability, speed, and minimal operational overhead, perfect for scaling business automation solutions.

## Common Use Cases

- **Enterprise workflow automation:** Execute hundreds or thousands of automation jobs in parallel using scalable worker architecture.
- **Background task processing:** Offload heavy-lifting tasks (APIs, data sync, complex transformations) from the n8n UI to background workers for improved reliability.
- **Automated data pipelines:** Build and orchestrate ETL pipelines, connecting disparate tools and services with durable, distributed processing.

## Dependencies for N8N with Workers Hosting

- **Redis:** Required as the queue backend for orchestrating job distribution.
- **PostgreSQL:** Central workflow database for n8n state, logs, and configuration data.
- **Node.js runtime or Docker (supported by Railway):** Used to run all n8n containers (web, worker, triggers).

### Deployment Dependencies

- [n8n Queue Mode Documentation](https://docs.n8n.io/self-hosted/queue-workers/)
- [Railway Redis Template](https://railway.com/template/redis)
- [Railway PostgreSQL Template](https://railway.com/template/postgres)
- [n8n Official Repository](https://github.com/n8n-io/n8n)


## Why Deploy N8N with 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 with 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.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — [Jul'26] WhatsApp automation platform using Evolution API, n8n & PostgreSQL
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/n8n-with-workers-and-queue-redis-postgre
