Deploy N8N (w/ workers + task runner)
A powerful workflow automation tool for technical people, w/ extra tools!
Redis
Just deployed
/bitnami
Runner
Just deployed
Just deployed
/var/lib/postgresql/data
Worker
Just deployed
Primary
Just deployed
Deploy and Host n8n (w/ workers + Task Runner) on Railway
n8n (w/ workers + Task Runner) is a ready-to-deploy Railway template that runs n8n with a main service, worker(s) for scalable workflow execution, and a dedicated external Task Runner service. It’s identical to the official “n8n with workers” template, with the addition of n8nio/runners, enabling isolated, reliable execution for Code node (JavaScript/Python).
About Hosting n8n (w/ workers + Task Runner)
This template deploys n8n on Railway with a production-ready setup: a main service (editor/API), worker service(s) that execute workflows, Redis for job queuing, PostgreSQL for storage, and an external Task Runner service (n8nio/runners). The extra Task Runner service provides a separate, managed runtime for the Code node, improving isolation and reliability for custom code without impacting the main editor. Railway provisions and manages the services so you can deploy quickly without manual configuration. As your workload grows, you can scale worker services for throughput and keep the editor responsive.
Common Use Cases
- Safely running custom JavaScript/Python in the Code node with stronger isolation
- Data pipelines that blend no-code connectors with custom logic or AI calls
- High-volume automations where workers process jobs in parallel at scale
Dependencies for n8n (w/ workers + Task Runner) Hosting
- PostgreSQL database
- Redis message queue
Deployment Dependencies
- Original Railway template: https://railway.com/deploy/n8n-with-workers
- Task Runners (external mode) docs: https://docs.n8n.io/hosting/configuration/task-runners/
- n8n 2.x changes (runners and security): https://docs.n8n.io/2-0-breaking-changes/
- n8nio/runners image: https://hub.docker.com/r/n8nio/runners
Why Deploy n8n (w/ workers + Task Runner) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying n8n (w/ workers + Task Runner) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content