Deploy N8N (w/Workers & Webhooks)
Deploy and Host N8N (w/Workers & Webhooks) with Railway
Worker
n8nio/n8n
Just deployed
Primary
n8nio/n8n
Just deployed
Redis
bitnami/redis:7.2.5
Just deployed
/bitnami
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
Deploy and Host n8n on Railway
n8n is a fair-code workflow automation platform for technical teams, combining the speed of no-code with the flexibility of code. It supports 400+ integrations, native AI features, webhooks, and scheduling, and can be fully self-hosted to keep data and deployments under your control. (n8n, GitHub)
About Hosting n8n
Hosting n8n on Railway is straightforward: provision a service using this template, set environment variables, and attach a persistent Volume to retain data across deploys. n8n defaults to SQLite but supports PostgreSQL for production; Redis is recommended when running in queue mode for horizontal scalability. Add a custom domain with HTTPS and monitor through Railway’s dashboard. Resource needs depend on your workflows, not just the app itself, so plan CPU/RAM accordingly and scale as usage grows. (n8n Docs, Railway Docs)
Common Use Cases
- Orchestrate CRM, marketing, and billing automations with 3rd-party apps and webhooks
- Build AI-assisted workflows for lead triage, content generation, and data enrichment
- Schedule ETL jobs: fetch, transform, and sync data between APIs and databases
Dependencies for n8n Hosting
- Persistent storage (Railway Volume) to keep credentials, executions, and project data
- Database: SQLite by default; PostgreSQL recommended for production and team use. Optional Redis for queue mode. (Railway Docs, n8n Docs)
Deployment Dependencies
- n8n Self-Hosting & Operations Docs (n8n Docs)
- Supported Databases (SQLite/PostgreSQL) (n8n Docs)
- Queue Mode & Redis Guidance (n8n Docs)
- Railway Volumes (persistent storage) (Railway Docs)
- Railway Public Networking, Custom Domains & HTTPS (Railway Docs)
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.
Template Content