---
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)**

- **Creator:** Can Celik's Projects
- **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.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

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