Deploy n8n with workers (1-click)
n8n with workers. Private database and Redis, no surprise n8n upgrades.
Primary
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 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
Implementation Details

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.
Template Content