Deploy n8n 3.0
n8n 3.0 [Nov '26] (Workflow/AI Agents/API Automation) Self Host on Postgres
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host n8n 3.0 on Railway
n8n is a workflow automation platform. You connect apps, APIs and AI models into workflows that run on triggers, on schedules, or when you call them. Version 3 is the current major release: legacy nodes were removed, security defaults got tighter, and self hosting is Docker only.
About Hosting n8n 3
This template runs the official n8n image at an exact pinned version, stated on this page and in the repo, with a Postgres database. Two services:
- n8n: the editor, the API and workflow execution. The only service with a public URL.
- Postgres: workflows, credentials and execution history, on their own volume. This is the state that matters, and it survives redeploys. Local files written inside the n8n container do not.
The pin matters. A redeploy gives you the same n8n you tested, never a surprise upgrade. Version bumps are deliberate, retested, and noted in the repo.
Why Deploy
- You get n8n 3 itself, not an unnamed version. The page and the repo state the exact tag.
- The parts people usually get wrong are already set: the encryption key is generated, the public address is wired to your Railway domain, and execution data pruning is on, so the database does not grow without limit.
- It is a small, honest shape: two services, regular mode, no Redis, no worker fleet to feed. You pay for what this page describes.
What is included
- n8n at the pinned tag (see Status below), from the official image
n8nio/n8n - Postgres 18 with SSL, from Railway's own Postgres image, on a volume
- A generated encryption key for stored credentials
- Webhook and OAuth callback addresses wired to your Railway domain
- Task runners, built into version 3 (JavaScript Code nodes; the Python runner does not start on the official image)
- Execution data pruning: 14 days, at most 10,000 executions
After you deploy
- Wait until both services are green.
- Open the n8n service's public URL.
- Create the owner account. The first account created owns the instance, so do this promptly: the setup page is open to anyone who finds the URL first.
- Open the n8n service in Railway, go to Variables, and copy
N8N_ENCRYPTION_KEYsomewhere safe outside Railway. The warning below explains why this cannot wait. - Build your first workflow, or import one.
Back up the encryption key
Credentials you store in n8n are encrypted with N8N_ENCRYPTION_KEY, generated for you at deploy time. Keep a copy of that value somewhere safe, outside Railway. Never change it: if it changes or is lost, every stored credential becomes unreadable, and a database backup cannot recover them, because the backup holds the same encrypted data and the key is not in it.
Coming from n8n 1.x or 2.x
Version 3 removes nodes: Function, Function Item, Item Lists, Cron, Interval, Read PDF, the legacy OpenAI node, and version 1 of the AI Agent node. Workflows using them will not run until those steps are rebuilt. If you run 2.39 or later today, open Settings, then Migration Report on your current instance before upgrading; it lists what the upgrade affects. Support for 1.x ends on 31 December 2026, and 2.x keeps security fixes for 12 months after 3.0 stable. Back up your database and your current encryption key before any upgrade. This template is a fresh install; it does not migrate an existing database.
Trade-offs, stated plainly
- Regular mode only. No queue mode, no workers, no Redis. One process serves the editor and runs every execution. That is the right default for most self hosted instances. Heavy parallel loads are the case for a worker setup, and this template does not pretend to be one.
- Local files do not persist. Workflows, credentials and execution history live in Postgres and survive redeploys. Files a workflow writes inside the n8n container are gone at the next redeploy; send anything you need to keep to storage outside the container.
- Pre-release pin, for now. See Status below.
- You run it. Database backups, the encryption key backup, and watching disk use past the pruning window are yours.
Status
This template currently pins n8n 3.4.1, a beta (pre-release) version. The template is published on this beta pin (published 2026-11-30); when n8n ships the stable 3.x release, the pin moves to that tag and the template is retested live. The version you are getting is always the version stated here and in the repo.
Common Use Cases
- Hand offs between apps: CRM updates, lead alerts, invoice filing
- Scheduled reports pulled from APIs into a sheet or a chat channel
- Webhook endpoints that glue services together
- AI workflows that summarize, classify and route messages with the model you choose
Dependencies for n8n 3 Hosting
- Postgres (included)
- Nothing else. Model provider keys are optional, and only needed for AI nodes.
Deployment Dependencies
- n8n repository: https://github.com/n8n-io/n8n
- n8n documentation: https://docs.n8n.io/
- Template source: this repository
Template Content