---
title: "Deploy n8n | Queue Mode Workflow Automation (Make Alternative)"
description: "Zapier alternative: worker, Postgres, Redis, locked owner, tested updates"
category: "Automation"
url: https://railway.com/deploy/n8n-or-queue-mode-workflow-automation-ma
---

# 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) on Railway](https://railway.com/template/n8n-or-queue-mode-workflow-automation-ma)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/n8n-or-queue-mode-workflow-automation-ma/manifest.json

- **Creator:** Railhost
- **Category:** Automation

## Template content

### n8n Worker

- **Source:** railhost/n8n-railway
- **Health check:** /healthz/readiness

### n8n

- **Source:** railhost/n8n-railway
- **Health check:** /healthz/readiness
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# 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

- n8n: https://github.com/n8n-io/n8n
- n8n docs: https://docs.n8n.io/hosting/
- Queue mode docs: https://docs.n8n.io/hosting/scaling/queue-mode/
- Template source: https://github.com/railhost/n8n-railway

### 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.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/n8n-or-queue-mode-workflow-automation-ma
