---
title: "Deploy N8N 2.0 Pro (Queue Mode with Webhooks, Workers, Code Runners, MCP & Auto-Updates)"
description: "🪄1-Click Deploy | High Performance N8N setup with Postgres17 + Redis + MCP"
category: "Automation"
url: https://railway.com/deploy/n8n-20-pro-queue-mode-workers-webhooks-m
---

# Deploy N8N 2.0 Pro (Queue Mode with Webhooks, Workers, Code Runners, MCP & Auto-Updates)

🪄1-Click Deploy | High Performance N8N setup with Postgres17 + Redis + MCP

**[Deploy N8N 2.0 Pro (Queue Mode with Webhooks, Workers, Code Runners, MCP & Auto-Updates) on Railway](https://railway.com/template/n8n-20-pro-queue-mode-workers-webhooks-m)**

- **Creator:** LAVA®
- **Category:** Automation
- **Total deploys:** 90

## Template content

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

- **Image:** n8nio/n8n:latest
- **Start command:** `n8n worker --concurrency=20`
- **Health check:** /healthz
- **Public domain:** Yes

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

- **Image:** railwayapp/redis:latest

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

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

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

- **Image:** ghcr.io/czlonkowski/n8n-mcp-railway:latest
- **Public domain:** Yes

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

- **Image:** n8nio/runners:latest

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

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

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

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

## Documentation

# Deploy and Host N8N 2.0 Pro (Queue Mode + Workers + Webhooks + Code Runners + MCP) on Railway

N8N 2.0 Pro is a production-grade n8n deployment architecture combining distributed queue-based execution, dedicated webhook processors, sandboxed code runners, and Model Context Protocol integration. It scales horizontally with independent workers, handles high-concurrency webhooks, executes JavaScript and Python code securely in isolated environments, and enables AI agent capabilities—all containerized and cloud-ready for Railway deployment.

## About Hosting n8n in Queue Mode with Workers, Webhooks, Code Runners & MCP

Hosting n8n in this configuration requires orchestrating multiple interconnected services: a main instance managing workflows and UI, Redis for job queue management, PostgreSQL for persistent data storage, dedicated workers processing queued jobs with configurable concurrency, task runner sidecars for secure Code node execution, and optional webhook processors handling incoming triggers independently. This architecture ensures the main instance remains responsive for UI interactions while background workers handle execution load. Code runners (task runners) provide sandboxed JavaScript and Python execution, isolating user code from the main process for security and stability. MCP integration enables AI agents to access external tools and data. The setup demands proper environment variable synchronization across services, Redis dual-stack configuration, runner-to-main communication via WebSocket grants, and careful concurrency tuning based on available CPU and memory resources.

## Common Use Cases

- **High-Volume Workflow Automation** – Process thousands of daily webhook triggers and scheduled jobs without main instance degradation
- **Secure Code Execution** – Run custom JavaScript and Python scripts in isolated task runners, preventing untrusted code from affecting core services
- **AI Agent Orchestration with MCP** – Route external tool calls through Model Context Protocol while managing execution concurrency
- **Multi-Tenant Automation Platform** – Scale horizontally by adding workers and code runners on-demand, isolating execution loads and preventing resource contention

## Dependencies

- **PostgreSQL Database** – Persistent storage for workflows, credentials, executions, and audit logs
- **Redis Cache** – Job queue broker managing Bull queue for distributed worker coordination
- **Task Runners (Code Runners)** – Sidecar containers executing Code node JavaScript/Python in sandboxed environments

### Documentation References

- [n8n Official Documentation](https://docs.n8n.io)
- [n8n Queue Mode Configuration](https://docs.n8n.io/hosting/scaling/queue-mode/)
- [n8n Task Runners Documentation](https://docs.n8n.io/hosting/configuration/task-runners/)
- [n8n v2.0 Breaking Changes](https://docs.n8n.io/2-0-breaking-changes/)
- [Redis Bull Queue Documentation](https://docs.bullmq.io/)

## Why Deploy 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 this n8n architecture 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-20-pro-queue-mode-workers-webhooks-m
