Deploy n8n-scalable-railway
Scalable production-ready n8n setup
Editor
Just deployed
Just deployed
/var/lib/postgresql/data
Valkey
Just deployed
/data
Webhook
Just deployed
Worker
Just deployed
š 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
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_HOSTN8N_SMTP_PORTN8N_SMTP_USERN8N_SMTP_PASSN8N_SMTP_SENDERN8N_EMAIL_MODE(default: smtp)
All other environment variables are preconfigured for a secure and scalable deployment.
š Deployment Steps
- Click Deploy on Railway
- Railway automatically provisions:
- Editor, Worker, Webhook
- PostgreSQL
- Valkey (Redis)
- Fill only the required SMTP envs
- 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!
Template Content
Editor
kaleldias/n8n-railwayN8N_SMTP_HOST
SMTP server hostname (e.g., smtp.resend.com)
N8N_SMTP_PASS
SMTP password or API key from your provider
N8N_SMTP_PORT
SMTP port (e.g., 587, 2587, 465)[2587 is by default available]
N8N_SMTP_USER
SMTP username from your provider
N8N_SMTP_SENDER
Default sender email (e.g., [email protected])
Valkey
valkey/valkey:latestWebhook
kaleldias/n8n-railwayWorker
kaleldias/n8n-railway