Deploy n8n Queue Mode
n8n in queue mode with workers
Redis
Just deployed
/data
n8n-worker
Just deployed
Just deployed
/var/lib/postgresql/data
Just deployed
/home/node/.n8n
Deploy and Host self hosted n8n Queue Mode (Open-Source Workflow Automation) on Railway
n8n Queue Mode is a production self-hosted n8n stack: visual editor, dedicated worker process, PostgreSQL, and Redis. Executions go on the queue instead of blocking the canvas. 400+ integrations, AI Agent nodes, and JavaScript or Python code steps still work. If you only need a small instance without workers, use the cheapest n8n without queue mode.
About Hosting n8n Queue Mode open-source software on Railway (self hosted n8n template)
Self hosting n8n in queue mode means workflows, credentials, webhook payloads, and execution history stay on your own stack. The editor takes the UI and inbound webhooks. Workers pull jobs from Redis and write results to Postgres. Railway wires private networking, a volume at /home/node/.n8n, and HTTPS for the editor.
Why Deploy n8n Queue Mode, the Zapier alternative on Railway (Railway Free Trial)
Zapier charges per task and n8n Cloud Starter is about $24/month for 2,500 executions. Self hosted n8n Queue Mode on Railway is typically $10-$25/month for editor, worker, Postgres, and Redis with unlimited Community Edition runs. Railway gives every new user a $5 free trial when signing up with GitHub, so you can test workers before you commit. 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 Queue Mode 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.
Railway vs Other Hosting Providers and VPS for n8n Queue Mode self hosting
| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | One-click editor, worker, Postgres, Redis, volume, and HTTPS | Droplet, Docker Compose, Nginx, SSL, and firewall by hand |
| AWS | Transparent usage pricing and private service DNS | ECS, RDS, ElastiCache, IAM, and VPC work before n8n boots |
| Hetzner | Managed queue mode without SSH | Low VPS cost, but you operate Redis, Postgres, and workers |
Common Use Cases for hosted n8n Queue Mode
Here are common use cases for self hosted n8n in queue mode:
- High-volume webhooks from Stripe, Shopify, Typeform, or GitHub that run on workers, not the UI.
- Scheduled reports, CRM syncs, and Google Sheets logging with Postgres history and pruning.
- Slack, Telegram, Discord, and Gmail bots that need a public HTTPS
WEBHOOK_URL. - AI Agent and RAG workflows without n8n Cloud execution caps.
Dependencies for n8n Queue Mode Docker hosted on Railway
Queue-mode n8n needs PostgreSQL for workflows and credentials, Redis as the Bull queue, a persistent volume for the encryption key and custom nodes, and a worker that shares the same image tag and N8N_ENCRYPTION_KEY as the editor.
Deployment Dependencies for Managed n8n Queue Mode Service (OSS Workflow Automation)
A managed n8n Queue Mode service on Railway uses official n8nio/n8n:2.36.8 for editor and worker, Railway Postgres (DB_TYPE=postgresdb), Redis for QUEUE_BULL_REDIS_HOST, a volume at /home/node/.n8n, and a public domain on port 5678 with /healthz.
Implementation Details for n8n Queue Mode (Using n8n official docker image)
This template runs official n8nio/n8n:2.36.8 (do not ship latest). The editor uses EXECUTIONS_MODE=queue and serves the UI plus webhooks. The worker starts with n8n worker. Both must share N8N_ENCRYPTION_KEY or credentials fail silently. Set WEBHOOK_URL=https://${{n8n.RAILWAY_PUBLIC_DOMAIN}}, N8N_PROTOCOL=https, N8N_PROXY_HOPS=1, GENERIC_TIMEZONE plus TZ, and EXECUTIONS_DATA_PRUNE=true. SQLite cannot run queue mode.
How does n8n Queue Mode compare against other Workflow Automation platforms
n8n Queue Mode vs Zapier (Zapier Alternative)
- Billing: Zapier bills each action as a task. Self hosted n8n counts one execution per workflow run, with no per-task fee on Community Edition.
- Data ownership: Credentials and history stay in your Postgres. Zapier is SaaS-only.
n8n Queue Mode vs Make (Make Alternative)
- Operations vs executions: Make bills operations inside a scenario. n8n Queue Mode on Railway is flat compute plus unlimited Community Edition runs.
- Self hosting: Make is cloud-only. This stack is the self-hosted visual alternative with workers.
n8n Queue Mode vs Power Automate (Power Automate Alternative)
- Microsoft lock-in: Power Automate is strongest inside M365. n8n connects 400+ apps, HTTP APIs, and code nodes without a Microsoft tenant.
- Queue workers: This stack scales executions with Redis workers instead of Microsoft cloud quotas.
n8n Queue Mode vs Activepieces (Activepieces Alternative)
- Canvas vs steps: n8n is a node canvas with branching, error workflows, and AI Agent nodes. Activepieces is a linear MIT-licensed builder.
- Production queue mode: Editor, worker, Postgres, and Redis ship together for production load.
How to use n8n Queue Mode (the OSS Workflow Automation)?
Deploy this n8n Queue Mode template, wait for editor, worker, Postgres, and Redis, then open the generated HTTPS domain and create the owner account. Build a workflow, set credentials, and publish so production webhooks use your Railway URL. Add worker replicas when the queue depth grows.
How to self host n8n Queue Mode on other VPS Services (n8n self hosting guide)
Clone the Repository
Download n8n from GitHub or pull n8nio/n8n:2.36.8.
Install Dependencies
Install Docker and Docker Compose. Production queue mode needs PostgreSQL 16-18, Redis, and RAM for the editor plus at least one worker.
Configure Environment Variables
Set the same values on main and workers:
EXECUTIONS_MODE=queueDB_TYPE=postgresdbwith matching Postgres host, user, password, and databaseQUEUE_BULL_REDIS_HOST/PORT/PASSWORDN8N_ENCRYPTION_KEY(identical on every process, never rotate casually)WEBHOOK_URL=https://your-domainandN8N_PROXY_HOPS=1behind a reverse proxy
Start the n8n Application
Start Postgres and Redis, then the editor on port 5678 and n8n worker as a second container. Put TLS in front of 5678. On Railway this layout is already split into services.
Official Pricing of n8n Queue Mode (n8n pricing)
n8n Community Edition is free to self-host under the fair-code Sustainable Use License. There is no per-execution fee on self-hosted Community. n8n Cloud Starter is around $24/month for 2,500 executions. SSO/SAML and multi-main HA need Business or Enterprise. You pay Railway for compute, Postgres, Redis, and the volume.
n8n Queue Mode cloud vs self hosted comparison (Pricing, features, costs, and more)
n8n Cloud is convenient and capped. Self hosted n8n Queue Mode on Railway is unlimited Community Edition executions, your encryption key, community nodes that Cloud blocks, and workers you can scale.
Monthly cost of self hosting n8n Queue Mode on Railway
Typical cost for editor + worker + Postgres + Redis is about $10-$25/month depending on worker CPU, execution volume, and disk. Heavy AI or binary workflows cost more because workers need RAM. The cheapest n8n without queue mode costs less because it has no worker or Redis.
System Requirements for Hosting n8n Queue Mode on a VPS
Plan for 2 vCPUs and 4GB RAM as a baseline (editor idle is hundreds of MB and spikes toward 1-2GB, plus Postgres and Redis). Store workflows on Postgres, keep /home/node/.n8n on disk, and expose 5678 behind HTTPS.
Frequently Asked Questions (FAQs)
What is n8n Queue Mode self hosted?
n8n Queue Mode self hosted means running Community Edition with an editor, Redis queue, Postgres, and one or more workers on your own infrastructure instead of n8n Cloud. Executions do not run inside the editor process.
How much does n8n Queue Mode self hosting cost on Railway?
This workers template typically runs about $10-$25/month on Railway for editor, worker, Postgres, and Redis, with unlimited Community Edition executions.
Is n8n Queue Mode free to use?
Yes. Community Edition is free to self-host. You pay only for infrastructure. Cloud plans and enterprise features (SSO, multi-main) are paid. Check the fair-code license before offering n8n as a hosted service to third parties.
What queue mode and workers does n8n support?
Set EXECUTIONS_MODE=queue, run n8n worker against Redis (Bull), and store executions in Postgres. The editor takes UI and webhooks; workers run jobs. Use the same image tag and N8N_ENCRYPTION_KEY on every process.
Where can I download n8n Queue Mode?
Get n8n from the official n8n GitHub or Docker Hub. For a lighter single-node instance without workers, use the cheapest n8n without queue mode.
What are some alternatives to n8n Queue Mode?
Zapier, Make, Microsoft Power Automate, Activepieces, Pipedream, and Huginn. n8n Queue Mode is the self-hosted canvas with workers.
Template Content
Redis
redis:8.2n8n-worker
n8nio/n8n:2.36.8