Deploy n8n with workers (1-click)
n8n with workers. Private database and Redis, no surprise n8n upgrades.
Primary
Just deployed
Just deployed
Just deployed
/var/lib/postgresql/data
Worker
Just deployed
Redis
Just deployed
/data
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.

About Hosting n8n with workers (1-click)
You get Primary (editor, API, webhooks), Worker, Redis and Postgres, with secrets generated per deployment. It idles at about 0.8 GB of memory. Deploy with your email and a password; a one-time Setup service makes them your owner login. Then sign in at the Primary URL.
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
Implementation Details

Add Worker replicas for more load. To upgrade n8n, change the image tag on Primary and Worker together. Back up N8N_ENCRYPTION_KEY: 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-29: owner login from the deploy form.
Based on templates by Jack.
Template Content
Primary
n8nio/n8n:2.47.7ADMIN_EMAIL
Your email address. It becomes your n8n owner login.
ADMIN_PASSWORD
Choose your n8n owner password: 8 to 64 characters, with at least one number and one uppercase letter.
Worker
n8nio/n8n:2.47.7Redis
redis:8.2