---
title: "Deploy n8n (Queue Mode) - Pinned, Tested, 3.0-Ready"
description: "Pinned, tested n8n in queue mode with worker, Postgres and Redis"
category: "Automation"
url: https://railway.com/deploy/n8n-queue-mode-pinned-tested-30-ready
---

# Deploy n8n (Queue Mode) - Pinned, Tested, 3.0-Ready

Pinned, tested n8n in queue mode with worker, Postgres and Redis

**[Deploy n8n (Queue Mode) - Pinned, Tested, 3.0-Ready on Railway](https://railway.com/template/n8n-queue-mode-pinned-tested-30-ready)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/n8n-queue-mode-pinned-tested-30-ready/manifest.json

- **Creator:** andrikos1325's Projects
- **Category:** Automation
- **Total deploys:** 1

## Template content

### n8n https://devicons.railway.app/n8n

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

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

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

### 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"`

### n8n-worker https://devicons.railway.app/n8n

- **Source:** localhavenstore/railway-n8n
- **Start command:** `/home/node/start.sh worker`

## Documentation

# Deploy and Host n8n (Queue Mode) on Railway

n8n in queue mode - main, worker, PostgreSQL and Redis - pinned to a release we tested (n8nio/n8n 2.42.3), with the n8n 3.0 defaults already set, your owner account created from variables (no open setup page) and a generated encryption key shared by main and worker.

## About Hosting n8n (Queue Mode)

n8n is a workflow automation platform: connect apps and APIs, run schedules and webhooks, add AI steps, with your own logic in Code nodes. This template runs it in queue mode: the main service serves the editor, the API and webhooks, and a separate worker runs the executions, with Redis as the job queue and PostgreSQL storing workflows, encrypted credentials, executions and binary data. The version is pinned, so a redeploy does not jump to n8n 3.0 (October 2026) on its own - you upgrade when you decide. A fresh n8n normally lets the first visitor create the owner; here the owner is created at start from N8N_OWNER_EMAIL and a generated password. Tested on a fresh throw-away VM: setup page closed, wrong password refused, a webhook executed by the worker, login after restart.

## Common Use Cases

- Automate work between apps and APIs (CRM, e-mail, Slack/Telegram, sheets, databases) with webhooks and schedules
- Run AI agent and LLM workflows with your own API keys, with a worker so long jobs do not block the editor
- Move an existing n8n to a pinned, tested setup before the n8n 3.0 upgrade

## Dependencies for n8n (Queue Mode) Hosting

- PostgreSQL (workflows, encrypted credentials, executions, binary data)
- Redis (the job queue between main and worker)

### Deployment Dependencies

- Upstream image: https://hub.docker.com/r/n8nio/n8n (2.42.3, pinned by digest)
- n8n docs: https://docs.n8n.io/hosting/
- n8n v3.0 breaking changes: https://docs.n8n.io/changelog/v30-breaking-changes/
- Template source + test result: https://github.com/localhavenstore/railway-n8n
- Guide - upgrading n8n on Railway to 3.0: https://localhavenstore.github.io/guides/n8n-railway-3-0-upgrade.html

## Why Deploy n8n (Queue Mode) on Railway?

Railway runs the four services, networking, HTTPS domain and backups for you, so you get a production-style n8n (editor + worker + queue + database) without managing a server. This template adds what most n8n templates skip: a pinned, tested version, the owner created from variables, a generated encryption key shared by both services, and the n8n 3.0 defaults.

New to Railway? Our referral link: https://railway.com?referralCode=j8As-k - you get USD 20 of credit, we get a share of your usage. Not affiliated with Railway or n8n GmbH. Made with AI assistance and tested by us (Localhaven).


## 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-queue-mode-pinned-tested-30-ready
