Deploy n8n (w/ workers + webhook processor)
n8n with workers and a webhook processor. Database stays private.
Worker
Just deployed
Webhook processor
Just deployed
Redis
Just deployed
/data
Primary
Just deployed
Just deployed
/var/lib/postgresql/data
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.

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
Implementation Details

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.
Template Content