---
title: "Deploy N8N + Worker + Webhook + External DB"
description: "n8n with Separate Worker & Webhook using External DB"
category: "AI/ML"
url: https://railway.com/deploy/Gos_2q
---

# Deploy N8N + Worker + Webhook + External DB

n8n with Separate Worker & Webhook using External DB

**[Deploy N8N + Worker + Webhook + External DB on Railway](https://railway.com/template/Gos_2q)**

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

- **Category:** AI/ML
- **Total deploys:** 25

## Template content

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

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

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

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

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

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

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

- **Image:** bitnami/redis

## Documentation

This Railway template deploys n8n with a scalable architecture, separating the worker and webhook processes while utilizing an external database for persistence. This setup enhances performance, reliability, and scalability, making it ideal for production environments.

🔧 Features:
- Separate Worker & Webhook: Ensures efficient load distribution.
- External Database Support: Uses PostgreSQL or MySQL for better persistence.
- Optimized for Railway: Pre-configured for seamless deployment.
- Scalable & Modular: Easily expand to match your workflow needs.

🚀 Get Started:
1.	Deploy the template to Railway.
2.	Configure environment variables.
3.	Enjoy a high-performance, scalable n8n setup!

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/Gos_2q
