---
title: "Deploy n8n-scalable-railway"
description: "Scalable production-ready n8n setup"
category: "Other"
url: https://railway.com/deploy/n8n-scalable-railway
---

# Deploy n8n-scalable-railway

Scalable production-ready n8n setup

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

- **Creator:** HASHING3
- **Category:** Other
- **Total deploys:** 10

## Template content

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

- **Source:** https://github.com/kaleldias/n8n-railway
- **Start command:** `n8n start`
- **Health check:** /healthz
- **Public domain:** Yes

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

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

### Valkey https://res.cloudinary.com/h5kvzw/image/upload/v1713278076/Valkey-logo_yrnlsx.svg

- **Image:** valkey/valkey:latest
- **Start command:** `/bin/sh -c "exec docker-entrypoint.sh valkey-server --port ${VALKEY_PORT} --requirepass ${VALKEY_PASSWORD}"`

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

- **Source:** https://github.com/kaleldias/n8n-railway
- **Start command:** `n8n webhook`
- **Health check:** /healthz
- **Public domain:** Yes

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

- **Source:** https://github.com/kaleldias/n8n-railway
- **Start command:** `n8n worker --concurrency=10`

## Documentation

# 🚀 n8n Scalable Railway Template

This project provides a **production-grade, scalable n8n setup** optimized for the Railway platform.  
It includes a multi-service architecture designed for performance, fault-tolerance, and high-throughput automation workloads.

---

# Deploy and Host

Deploy this template directly on Railway to get a fully isolated and scalable multi-service n8n infrastructure.  
Railway will automatically provision the Editor, Worker, Webhook, PostgreSQL, and Valkey services with zero manual setup.

[Click here to Deploy on Railway](https://railway.com)

---

## About Hosting

This template is designed specifically for **production hosting** on Railway, ensuring:

- Automatic resource provisioning  
- Service isolation  
- Secure environment variable handling  
- Automatic HTTPS via Railway domains  
- Horizontal scaling for Worker and Webhook services  
- Built-in persistent storage for PostgreSQL  

Everything is preconfigured for real-world, enterprise-grade workloads.

---

## Why Deploy

Deploying this template gives you:

- A stable, production-ready n8n architecture  
- Distributed execution using Workers  
- Reliable Webhook processing under high load  
- Automatic queuing via Redis/Valkey  
- A secure and isolated environment  
- Zero infrastructure maintenance  

Perfect for users who need **automation at scale** without managing servers manually.

---

## Common Use Cases

This template is ideal for:

- High-volume webhook ingestion  
- Automation pipelines and backend orchestration  
- Large-scale multi-step workflows  
- AI agent orchestration  
- Event-driven applications  
- Cron, polling, and scraping tasks  
- Enterprise integrations requiring fault tolerance  

---

## Dependencies for

This template includes and depends on the following core components:

### Deployment Dependencies

- **Railway Postgres** – persistent storage for workflows, executions, and credentials  
- **Railway Valkey (Redis)** – BullMQ job queue backend  
- **n8n Editor Service** – main UI and configuration  
- **n8n Worker Service** – distributed execution engine  
- **n8n Webhook Service** – high-performance webhook receiver  
- **Railway Domains** – automatic HTTPS and routing  

All dependencies are automatically created and linked during deployment.

---

## 📌 Features

- **Editor Service** – Main n8n interface  
- **Worker Service** – Dedicated workflow execution workers  
- **Webhook Service** – High-performance webhook processing endpoint  
- **PostgreSQL** – Persistent workflow and credential storage  
- **Valkey (Redis)** – Queue backend for distributed job execution  
- **Automatic Secrets** – Encryption keys generated automatically  
- **Fully Isolated Services** – Editor, Worker, Webhook all managed independently  

---

## 🧩 Architecture Overview

Editor → Worker → Webhook  
└── PostgreSQL  
└── Valkey (Redis)

- **Editor** handles UI, workflows, credentials, and manual executions  
- **Worker** executes jobs asynchronously using queue-based execution  
- **Webhook** receives external HTTP callbacks at scale  
- **PostgreSQL** stores workflows, executions, credentials  
- **Valkey** powers distributed execution via BullMQ queues  

---

## 🔧 Environment Variables

### Automatically Provided by Railway
- Database host, port, user, password  
- Valkey (Redis) host, port, password  
- Public domain references  
- Encryption key (`${{secret(64)}}`)

### User-Provided (SMTP)
- `N8N_SMTP_HOST`  
- `N8N_SMTP_PORT`  
- `N8N_SMTP_USER`  
- `N8N_SMTP_PASS`  
- `N8N_SMTP_SENDER`  
- `N8N_EMAIL_MODE` (default: smtp)

All other environment variables are preconfigured for a secure and scalable deployment.

---

## 🚀 Deployment Steps

1. Click **Deploy on Railway**  
2. Railway automatically provisions:
   - Editor, Worker, Webhook  
   - PostgreSQL  
   - Valkey (Redis)
3. Fill only the required SMTP envs  
4. Your production automation platform is ready

---

## 🛡 Security

- Credentials encrypted using a **64-byte encryption key**  
- Secure cookies enabled  
- Production-hardening enabled  
- Public API endpoints disabled by default  
- Database SSL enforced  

---

## 🧑‍💻 Maintainer

Built and maintained by **Kal-EL Dias**.  
This architecture reflects the same deployment patterns I personally use for **high-volume, large-scale automation systems** in real client and enterprise projects.  
Future updates may include **version upgrades, security enhancements, and infra improvements** as the n8n and Railway ecosystems evolve.

---

Ready to scale your automations — enjoy your new production-ready n8n setup!


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/n8n-scalable-railway
