Deploy N8N (w/ workers + task runner)
n8n with workers and external task runners for secure scaling
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 1‑click Railway template that deploys n8n in queue mode with worker(s), Redis, Postgres, and external Task Runner(s) (n8nio/runners) for the Code node. It isolates JavaScript/Python execution for reliability, supports high‑throughput webhooks, and lets you scale workers independently for throughput.
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
- Isolated execution of Code node (JavaScript/Python) for reliability and safety
- High‑volume webhook processing that doesn’t block the editor
- Data pipelines mixing connectors with custom logic or AI calls
- Parallel background jobs and long‑running tasks
Dependencies for n8n (w/ workers + Task Runner) Hosting
- PostgreSQL database
- Redis message queue
Deployment Dependencies
- Queue mode: https://docs.n8n.io/hosting/scaling/queue-mode/
- Queue env vars: https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/
- Task Runners (external mode): https://docs.n8n.io/hosting/configuration/task-runners/
n8nio/runnersimage: https://hub.docker.com/r/n8nio/runners- Related: N8N (w/ FFmpeg) → https://railway.com/deploy/n8n-w-ffmpeg
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
