Deploy n8n - self-hosted Zapier alternative with workers
Self-host a Zapier alternative with n8n workers, Redis and PostgreSQL.
Just deployed
/var/lib/postgresql/data
Primary
Just deployed
Redis
Just deployed
/bitnami
Worker
Just deployed
Deploy and Host n8n - a self-hosted Zapier alternative
About Hosting n8n
n8n gives technical teams a self-hostable alternative to Zapier with visual workflows, custom JavaScript or Python, AI automation and control over their data.
Why Deploy n8n on Railway
This template creates a Primary service, Worker, internal Redis and PostgreSQL so queued executions work without assembling the stack yourself.
Common Use Cases
- Replace cloud-only Zapier automations with self-hosted workflows.
- Build multi-step integrations with custom code and webhooks.
- Run AI workflows with queued worker execution.
Dependencies for n8n Hosting
The template includes n8n Primary and Worker services, Redis for the execution queue and PostgreSQL for durable application data.
Deployment Dependencies
- n8n Primary and Worker images
- Internal Redis
- PostgreSQL
- A stable generated n8n encryption key
Quick Start
- Just deploy it - no additional configuration required
- Open the Primary node / instance
- Go to Settings, follow the Public Networking URL to access your n8n web UI
Template changelog
October 6 2025
- Changed Redis image to railwayapp/redis
September 10, 2025
- Added
N8N_PROXY_HOPS=1(from Issue #18498). Recommended when running behind a reverse proxy
March 13, 2025
- Added
OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERSset totruebased on n8n GitHub PR #11284. This offloads manual workflow executions to worker nodes, improving performance distribution
If you have any questions or run into issues, feel free to reach out to me here - Railway Help Station

n8n - Secure Workflow Automation for Technical Teams
n8n is a workflow automation platform that gives technical teams the flexibility of code with the speed of no-code. With 400+ integrations, native AI capabilities, and a fair-code license, n8n lets you build powerful automations while maintaining full control over your data and deployments.

Key Capabilities
- Code When You Need It: Write JavaScript/Python, add npm packages, or use the visual interface
- AI-Native Platform: Build AI agent workflows based on LangChain with your own data and models
- Full Control: Self-host with our fair-code license or use our cloud offering
- Enterprise-Ready: Advanced permissions, SSO, and air-gapped deployments
- Active Community: 400+ integrations and 900+ ready-to-use templates
Resources
- 📚 Documentation
- 🔧 400+ Integrations
- 💡 Example Workflows
- 🤖 AI & LangChain Guide
- 👥 Community Forum
- 📖 Community Tutorials
Support
Need help? Our community forum is the place to get support and connect with other users: community.n8n.io
Template Content