---
title: "Deploy n8n (w/ workers + webhook processor)"
description: "n8n with workers and a webhook processor. Database stays private."
category: "Automation"
url: https://railway.com/deploy/fes8j0
---

# Deploy n8n (w/ workers + webhook processor)

n8n with workers and a webhook processor. Database stays private.

**[Deploy n8n (w/ workers + webhook processor) on Railway](https://railway.com/template/fes8j0)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/fes8j0/manifest.json

- **Creator:** AvgSoft
- **Category:** Automation
- **Total deploys:** 232

## Template content

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

- **Image:** n8nio/n8n:2.44.7
- **Start command:** `n8n worker`
- **Health check:** /healthz

### Webhook processor

- **Image:** n8nio/n8n:2.44.7
- **Start command:** `n8n webhook`
- **Health check:** /healthz
- **Public domain:** Yes

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

- **Image:** redis:8.10.3
- **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"`

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

- **Image:** n8nio/n8n:2.44.7
- **Start command:** `n8n start`
- **Health check:** /healthz
- **Public domain:** Yes

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

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

## Documentation

# Deploy and Host n8n (w/ workers + webhook processor) on Railway

n8n is a self-hosted workflow automation platform. This template gives webhooks their own service next to the workers, so webhook traffic and heavy workflows don't slow down your editor. The database and Redis stay off the public internet.

![n8n in queue mode on Railway](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@f4c79b78f767324fcf58ec6b9e4ecd42b939859d/n8n-queue-mode/banner.png)

## About Hosting n8n (w/ workers + webhook processor)

Queue mode needs five services wired together with shared secrets and private networking. This template sets it all up. Deploy, open the Primary service's URL, and create your account.

## Common Use Cases

- High-volume webhook integrations
- Long-running workflows: data syncs, ETL, reports
- AI agents connected to your tools and APIs

## Dependencies for n8n (w/ workers + webhook processor) Hosting

- PostgreSQL
- Redis

### Deployment Dependencies

- [n8n queue mode docs](https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/enable-queue-mode)

### Implementation Details

![Architecture: Primary and Webhook processor have public URLs; Redis, Workers and Postgres stay on the private network](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@c5ac20451629bcb80a0092ff15b11e69201e11c1/n8n-queue-mode/architecture.png)

Add Worker replicas to handle more load. Passwords and the encryption key are generated for each deployment. Back up `N8N_ENCRYPTION_KEY`: your saved credentials can't be decrypted without it.

## Why Deploy n8n (w/ workers + webhook processor) 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 (w/ workers + webhook processor) 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.


**Updated 2026-10-26:** official Redis image, unique secrets per deployment, PostgreSQL 18.

Based on templates by Nikolai and Jack.


## 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/fes8j0
