Deploy N8N (w/ task runners)
n8n with external task runners for isolated and reliable code execution
Just deployed
/var/lib/postgresql/data
Main
Just deployed
Runners
Just deployed
Deploy and Host n8n with Task Runners on Railway
n8n is a powerful workflow automation platform for connecting APIs, applications, databases, AI models, and business processes. This template pairs n8n with PostgreSQL and dedicated external Task Runners, providing a cleaner architecture for executing Code node tasks separately from the main n8n process.
About Hosting n8n with Task Runners

This template deploys a self-hosted n8n stack with PostgreSQL for persistent application data and dedicated n8n Task Runners for isolated task execution.
The Main service hosts the n8n editor, APIs, webhooks, scheduling, and workflow orchestration. PostgreSQL stores workflows, credentials, execution history, and other persistent n8n data. The separate Task Runners service connects to n8n's task broker and executes supported Code node tasks outside the main n8n process.
Unlike n8n Queue Mode deployments, this template does not require Redis or separate workflow workers, keeping the infrastructure smaller while still providing dedicated task execution.
Included Architecture
| Service | Purpose |
|---|---|
| Main | n8n editor, API, webhooks, scheduling, and workflow orchestration |
| Runners | Dedicated external Task Runners for Code node task execution |
| PostgreSQL | Persistent database for workflows, credentials, executions, and configuration |
Common Use Cases
- Build AI-powered workflows and AI agents
- Connect APIs, databases, SaaS applications, and internal systems
- Run JavaScript and supported Python tasks through dedicated Task Runners
- Automate backend processes and API integrations
- Build webhook-driven automation
- Process and transform data inside workflows
- Automate CRM, notifications, reporting, and business operations
- Connect LLMs and AI services to existing applications
- Build scheduled and event-driven workflows
- Self-host automation while keeping control of your data
n8n vs Other Workflow Automation Platforms
| Platform | Self-Hosted | Visual Workflows | Custom Code | AI Automation | Dedicated Task Execution | Best Fit |
|---|---|---|---|---|---|---|
| n8n | ✅ Yes | ✅ Yes | ✅ Strong | ✅ Yes | ✅ Task Runners | Developers, APIs, AI workflows, advanced automation |
| Zapier | ❌ Primarily SaaS | ✅ Yes | ⚠️ Limited compared with n8n | ✅ Yes | ❌ Managed internally | Fast SaaS integrations and business automation |
| Make | ❌ Primarily SaaS |