Railway

Deploy n8n - self-hosted Zapier alternative with workers

Self-host a Zapier alternative with n8n workers, Redis and PostgreSQL.

Deploy n8n - self-hosted Zapier alternative with workers

/var/lib/postgresql/data

Primary

n8nio/n8n

Just deployed

Just deployed

/bitnami

Worker

n8nio/n8n

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

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_WORKERS set to true based 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


Banner image

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.

n8n.io - Screenshot

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

Support

Need help? Our community forum is the place to get support and connect with other users: community.n8n.io


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
119
View Template
Evolution API with n8n
Build a WhatsApp automation platform with Evolution API, n8n & Postgres.

codestorm
82
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
870