---
title: "Deploy n8n (Clone)"
description: "n8n Queue: workers+webhooks+pgvector+Redis IPv6. LATAM/WhatsApp/CRM"
category: "Automation"
url: https://railway.com/deploy/n8n-clone-1
---

# Deploy n8n (Clone)

n8n Queue: workers+webhooks+pgvector+Redis IPv6. LATAM/WhatsApp/CRM

**[Deploy n8n (Clone) on Railway](https://railway.com/template/n8n-clone-1)**

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

- **Creator:** Tecnología's Projects
- **Category:** Automation

## Template content

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

- **Source:** https://github.com/two-workspaces/n8n-queue
- **Health check:** /healthz
- **Public domain:** Yes

### redis https://devicons.railway.app/i/redis.svg

- **Source:** https://github.com/two-workspaces/n8n-queue

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

- **Source:** https://github.com/two-workspaces/n8n-queue
- **Health check:** /healthz
- **Public domain:** Yes

### postgres https://devicons.railway.app/i/postgresql.svg

- **Source:** https://github.com/two-workspaces/n8n-queue

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

- **Source:** https://github.com/two-workspaces/n8n-queue
- **Health check:** /healthz

## Documentation

# Deploy and Host n8n Queue Production (Workers + Webhooks + pgvector) on Railway

## ES
Template de **n8n en Queue Mode** listo para producción: `main` + `worker(s)` + `webhook` + **Postgres pgvector** + **Redis** (BullMQ).

Ideal para automatizaciones **LATAM** (WhatsApp/Meta Cloud API, CRM, cobranza, e-commerce). Incluye el fix crítico de Railway IPv6: `QUEUE_BULL_REDIS_DUALSTACK=true`.

### Servicios
| Servicio | Rol | Público |
| --- | --- | --- |
| main | Editor UI + API + productor de cola | Sí |
| worker | Ejecuta workflows (escalable) | No |
| webhook | Webhooks de producción | Sí |
| postgres | `pgvector/pgvector:pg16` | No |
| redis | Cola Bull con password + AOF | No |

### Por qué este template
- Queue mode real: redeploy del editor no tumba webhooks de producción
- pgvector incluido para RAG / memoria vectorial
- Dual-stack Redis: el DNS privado de Railway es IPv6; sin `QUEUE_BULL_REDIS_DUALSTACK` el queue mode suele fallar
- Primer login en `main` crea el owner

### Arranque
1. Deploy One-Click
2. Abre el dominio de **main** y crea el usuario owner
3. Usa el dominio de **webhook** para URLs de producción (`WEBHOOK_URL`)
4. Escala throughput con réplicas de **worker**

## EN
Production-ready **n8n Queue Mode**: `main` + `worker(s)` + `webhook` + **Postgres pgvector** + **Redis** (BullMQ).

Built for WhatsApp/CRM automation at scale. Critical Railway IPv6 fix baked in: `QUEUE_BULL_REDIS_DUALSTACK=true` (private DNS is IPv6; BullMQ/ioredis defaults break without dual-stack).

### Quick start
1. One-click deploy
2. Open **main** public URL → first user becomes owner
3. Production webhooks use the **webhook** domain
4. Scale workers for throughput

### Wiring highlights
- Shared: `N8N_ENCRYPTION_KEY`, Postgres/Redis private hosts + secrets
- main: `WEBHOOK_URL` → webhook public domain, `EXECUTIONS_MODE=queue`
- Health: `/healthz` on main / worker / webhook


## 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/n8n-clone-1
