Deploy n8n | Queue Mode Workflow Automation (Make Alternative)

Zapier alternative: worker, Postgres, Redis, locked owner, tested updates

Deploy n8n | Queue Mode Workflow Automation (Make Alternative)

Just deployed

Just deployed

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host n8n (Queue Mode Workflow Automation, Zapier and Make Alternative) on Railway

n8n is a workflow automation tool with 400+ integrations, AI agents and a visual editor. Connect apps and APIs, react to webhooks, run jobs on a schedule, and write JavaScript where you need it. It is a self-hosted alternative to Zapier and Make, with no limit on executions and your data on your own server.

About Hosting n8n

This template runs n8n in queue mode: the n8n service serves the editor and takes webhooks, and a separate n8n Worker runs every execution. Postgres and Redis sit on Railway's private network, each with its own volume.

A plain n8n install shows a setup page where the first visitor becomes the owner. This template creates the owner from N8N_OWNER_EMAIL and a generated password on the first boot, so that page never opens.

After deploying:

  1. Open the n8n service's public URL.
  2. Log in with N8N_OWNER_EMAIL and N8N_OWNER_PASSWORD from the n8n service's Variables tab.
  3. Build a workflow and publish it.

A GitHub Action checks for new stable n8n releases every day and smoke-tests each one before it reaches you. Railway then shows an update notice in your project, and you apply it when it suits you.

Common Use Cases

  • Replace Zapier or Make and stop paying per task
  • Sync data between a CRM, a database and a spreadsheet
  • Receive webhooks from Stripe, GitHub or forms and act on them
  • Build AI agents that call your tools and APIs
  • Run scheduled reports and cleanup jobs

Dependencies for n8n Hosting

  • Postgres for workflows, credentials, execution history and binary data
  • Redis for the queue between the main and the workers
  • Optional: SMTP to send user invites

Deployment Dependencies

Implementation Details

Both n8n services build from the same image; N8N_PROCESS=worker makes one of them a worker. Binary data is stored in Postgres, so neither n8n service needs a volume, and you can add worker replicas for more throughput. Each worker runs up to 10 executions at once.

n8n resets the owner to N8N_OWNER_EMAIL and N8N_OWNER_PASSWORD on every start, so change your login in the variables. Never change N8N_ENCRYPTION_KEY: it encrypts saved credentials. Update the main and the worker together.

Why Deploy n8n 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 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

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
121
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
125
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
865