---
title: "Deploy n8n Queue Stack with Workers"
description: "n8n queue execution with Postgres, private Redis and a separate worker."
category: "Automation"
url: https://railway.com/deploy/n8n-queue-stack-with-workers
---

# Deploy n8n Queue Stack with Workers

n8n queue execution with Postgres, private Redis and a separate worker.

**[Deploy n8n Queue Stack with Workers on Railway](https://railway.com/template/n8n-queue-stack-with-workers)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/n8n-queue-stack-with-workers/manifest.json

- **Creator:** dankeewithtwoes's Projects
- **Category:** Automation

## Template content

### Worker https://devicons.railway.app/i/n8n.svg

- **Image:** n8nio/n8n@sha256:3db21366be1d3c77c1708963129c051948573019659e8873e0294be035ffc1b2
- **Start command:** `n8n worker`

### Primary https://devicons.railway.app/i/n8n.svg

- **Image:** n8nio/n8n@sha256:3db21366be1d3c77c1708963129c051948573019659e8873e0294be035ffc1b2
- **Start command:** `n8n start`
- **Health check:** /healthz
- **Public domain:** Yes

### Redis https://img.icons8.com/color/48/redis--v1.png

- **Image:** redis@sha256:47670742d7924adbcdb404d1288b6327815b23141969c0939b8e5d61f78c2634
- **Start command:** `/bin/sh -c 'exec docker-entrypoint.sh redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes --save 60 1 --maxmemory-policy noeviction --bind 0.0.0.0 :: --dir /data'`

### Postgres https://img.icons8.com/color/48/postgreesql.png

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl@sha256:87184beace8ec657a760401a466a13c5b689066b31b77993103b4771933a9d31
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

## Documentation

# Deploy and Host n8n Queue Stack with Workers on Railway

n8n queue execution with Postgres, private Redis and a separate worker.

## About Hosting n8n Queue Stack with Workers

This deployment fork provisions Primary, Worker, Redis, Postgres. Application domains and any authored TCP endpoints are generated for each new deployment. Database and queue services are private by default.

## Why Deploy n8n Queue Stack with Workers on Railway

- New setup and maintenance documentation with attribution to the original template.
- Public container sources are locked by image digest and public Git repositories by commit SHA.
- Database and queue services use private networking; external database access is an explicit deployer choice.
- Explicit persistent encryption key, current webhook/proxy settings and bounded execution retention.

## Common Use Cases

- Execute integration workflows outside the editor process.
- Handle webhook-driven automation.
- Run scheduled and manual workflow jobs on a worker.

## Dependencies for n8n Queue Stack with Workers

- A Railway account with capacity for 4 service definitions and the authored storage.
- Your own external accounts and credentials when an integration or model provider is needed. No paid provider subscription is included.
- Local passwords and service secrets are generated or referenced at deployment; external integrations are configured by the deployer.

## First Launch

Wait for PostgreSQL, Redis, Primary and Worker. Open the Primary domain and create the owner account immediately. Connect your integrations. Keep Worker running for queued jobs.

## Included Services and Storage

| Service | Persistent paths |
| --- | --- |
| Primary | No attached volume |
| Worker | No attached volume |
| Redis | `/data` |
| Postgres | `/var/lib/postgresql/data` |

## Operations

Primary and Worker reference one encryption key and the same database/queue. Back up PostgreSQL and retain that key. Scale workers only after reviewing n8n queue and binary-data requirements.

Railway bills the deployer for actual services, storage and network use. Back up persistent data before source/version changes. This publication was checked against Railway's configuration schema and upstream source/registry availability; a full runtime deployment test has not been performed.

## Attribution and Source

Based on [N8N (w/ workers)](https://railway.com/template/n8n-with-workers) by Jack. It appeared at position 3 in Railway's backend Popular/browse results captured on 2026-10-18, with 81,258 deployments reported for the original. That count belongs to the original, not this new fork.

The original software and repositories remain owned by their upstream authors and retain their licenses. This is a deployment configuration fork with new documentation, not a claim of software authorship or official vendor affiliation.

For template wiring issues, use this template's discussion link and share redacted logs. Never post passwords, API keys or login tokens.


## Deploy this recipe

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/n8n-queue-stack-with-workers?utm_source=railway-marketplace&amp;utm_medium=listing&amp;utm_campaign=toolkit-discovery&amp;utm_content=n8n-queue-workers-starter)

Review the required inputs and hosting resource costs before deploying.

### Related deployment recipes

- [ntfy Private Notifications with Persistent Data](https://railway.com/template/ntfy-private-notifications-with-persiste) — Private push notifications with generated admin and persistent storage.
- [n8n with PostgreSQL &amp; Durable Storage](https://railway.com/template/n8n-with-postgresql-and-durable-storage) — Workflow automation with private Postgres, durable files and webhook URLs.
- [Uptime Kuma with Persistent Storage](https://railway.com/template/uptime-kuma-with-persistent-storage) — Uptime checks, alerts and status pages with persistent monitor data.

These are separate deployments; no preconfigured integration between the applications is implied.

Disclosure: this template is maintained independently. Its maintainer may earn Railway usage kickbacks when other people deploy it. Railway bills hosting separately; no paid software subscription or provider credits are included.



## 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) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [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-queue-stack-with-workers
