N8N (w/ workers)
A powerful workflow automation tool for technical people
Primary
n8nio/n8n
Just deployed
Worker
n8nio/n8n
Just deployed
Redis
bitnami/redis
Just deployed
/bitnami
Postgres
railwayapp-templates/postgres-ssl
Just deployed
/var/lib/postgresql/data
Deploy and Host n8n (w/ workers) on Railway
n8n is a workflow automation tool that uses a node-based approach to connect services and automate processes. This template deploys n8n with a worker architecture for handling workflow execution at scale.
About Hosting n8n (w/ workers)
n8n (w/ workers) runs as a multi-service architecture where the main instance handles the web interface and API while worker processes execute workflows. The main service manages workflow definitions, user authentication, and the web UI, while workers pull jobs from a Redis queue to execute workflows independently. The Railway template automatically provisions and configures Redis for job queuing and PostgreSQL for workflow storage. Worker scaling allows handling multiple concurrent workflow executions without blocking the main interface.
Common Use Cases
- ETL: Move and transform data between different databases and applications
- Monitoring and Alerting: Set up automated monitoring workflows that trigger alerts based on system conditions
Dependencies for n8n (w/ workers) Hosting
The Railway template includes all required dependencies: Node.js runtime, PostgreSQL database, and Redis message queue.
Deployment Dependencies
- n8n Workflow Demo Video - Key concepts in under 4 minutes
- n8n Documentation - Official documentation
- n8n Integrations - 200+ available nodes
Implementation Details
Architecture Components:
This template deploys four services:
- Primary Service: Main n8n instance serving web UI and API
- Worker Service: Background worker processes for workflow execution
- Redis: Message broker for job queue management
- PostgreSQL: Database for workflow and execution data storage
Worker Configuration:
Workers operate independently from the main service, allowing workflow execution to scale horizontally. The Redis queue coordinates job distribution between the main instance and available workers.
Available Integrations:
n8n provides 200+ nodes for workflow automation. View the complete list at n8n.io/integrations.
Service Configuration:
- Main Instance: Handles web interface, API requests, and workflow management
- Worker Processes: Execute workflows pulled from Redis queue
- Scaling: Add more worker services to handle increased workflow execution load
License Information:
n8n is fair-code distributed under the Sustainable Use License and n8n Enterprise License. Fair-code ensures visible source code, self-hosting availability, and custom function capabilities. Proprietary licenses available for enterprise customers.
Why Deploy n8n (w/ workers) 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) 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