---
title: "Deploy n8n with workers (1-click)"
description: "n8n with workers. Private database and Redis, no surprise n8n upgrades."
category: "Automation"
url: https://railway.com/deploy/n8n-with-workers-1-1
---

# Deploy n8n with workers (1-click)

n8n with workers. Private database and Redis, no surprise n8n upgrades.

**[Deploy n8n with workers (1-click) on Railway](https://railway.com/template/n8n-with-workers-1-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/n8n-with-workers-1-1/manifest.json

- **Creator:** AvgSoft
- **Category:** Automation
- **Total deploys:** 2

## Template content

### Primary https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@7c3d7b6a584cefada441adb475d6ab3c708cf19c/service-icons/n8n.svg

- **Image:** n8nio/n8n:2.44.7
- **Start command:** `n8n start`
- **Health check:** /healthz
- **Public domain:** Yes

### Postgres https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@7c3d7b6a584cefada441adb475d6ab3c708cf19c/service-icons/postgresql.svg

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

### Worker https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@7c3d7b6a584cefada441adb475d6ab3c708cf19c/service-icons/n8n.svg

- **Image:** n8nio/n8n:2.44.7
- **Start command:** `n8n worker`
- **Health check:** /healthz

### Redis https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@7c3d7b6a584cefada441adb475d6ab3c708cf19c/service-icons/redis.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"`

## Documentation

# Deploy and Host n8n with workers (1-click) on Railway

n8n is a self-hosted workflow automation platform. This template runs your workflows on workers, keeps Postgres and Redis off the public internet, and pins a tested n8n version, so a new major release never reaches you untested.

![n8n with workers on Railway](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@8dca997505e255dd5ff358d557d570e1270496c1/n8n-workers/banner.png)

## About Hosting n8n with workers (1-click)

You get four services: Primary (editor, API and webhooks), Worker, Redis and Postgres, with passwords and the encryption key generated for each deployment. It uses about 0.8 GB of memory at idle. Deploy, open the Primary service's URL, and create your account.

## Common Use Cases

- Webhook and API integrations
- Scheduled data syncs and reports
- AI agents connected to your tools

## Dependencies for n8n with workers (1-click) Hosting

- PostgreSQL
- Redis

### Deployment Dependencies

- [n8n queue mode docs](https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/enable-queue-mode)

### Implementation Details

![Architecture: only Primary has a public URL; Redis, Worker and Postgres stay on the private network](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@8dca997505e255dd5ff358d557d570e1270496c1/n8n-workers/architecture.png)

Add Worker replicas to handle more load. To upgrade n8n, change the image tag on Primary and Worker together. Back up `N8N_ENCRYPTION_KEY`: your saved credentials can't be decrypted without it.

## Why Deploy n8n with workers (1-click) 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 with workers (1-click) 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.


**Updated 2026-10-27:** first release, n8n 2.44.7, PostgreSQL 18, Redis 8.2.

Based on templates by Jack.


## 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-with-workers-1-1
