n8n is a workflow automation tool that connects apps, APIs and databases through visual nodes, with Code nodes for custom logic. To run n8n self hosted on Out Plane, deploy the official Docker image n8nio/n8n:2.47.4 on port 5678, mount a volume at /home/node/.n8n, connect a managed PostgreSQL database, and set your own N8N_ENCRYPTION_KEY before the first start. The app gets an HTTPS address, which becomes your webhook URL.
The self-hosted Community Edition is free under n8n's Sustainable Use License, for your own internal business use or personal use. You pay for hosting. This guide maps n8n's Docker install docs to Out Plane and covers webhooks, a custom domain, queue mode, updates, backups and the cost against n8n Cloud. For other apps, browse the templates or read the best Docker containers to self-host.
What You Need
- One app on op-34 (1 vCPU, 2 GB), the size we list for n8n. n8n does not cap how much data a node fetches, per its memory guide, so large files, big JSON payloads and Code nodes all raise memory use. Watch the app's memory metric and move to op-46 if executions fail with out of memory errors.
- A managed PostgreSQL database. n8n supports PostgreSQL 16, 17 and 18. Out Plane offers versions 14 to 18, with 17 as the default. Without it, n8n falls back to a SQLite file.
- A 10 GB volume at
/home/node/.n8n. Even with PostgreSQL, n8n keeps its config file, which holds the encryption key, plus instance logs in this folder, and its docs recommend keeping it on persistent storage. An app with a volume runs one instance, and the size is fixed at creation. - An encryption key. Generate one with
openssl rand -hex 32and store it in your password manager before you deploy. - An SMTP account, optional. Without one, you copy invite links by hand and users cannot reset their passwords.
The app, the database and the volume fit inside the Starter plan limits of 3 apps, 1 managed database and 30 GB of volumes.
From n8n Docker Run to Out Plane
n8n's official docker run example maps to the console like this:
| Docker setting | On Out Plane |
|---|---|
n8nio/n8n | Image source, pinned to n8nio/n8n:2.47.4 |
-p 5678:5678 | Port 5678, HTTP, Public |
-v n8n_data:/home/node/.n8n | 10 GB volume mounted at /home/node/.n8n |
-e GENERIC_TIMEZONE, -e TZ | Environment variables |
-e DB_POSTGRESDB_* | Values from the database's Connection panel |
| Traefik with Let's Encrypt in n8n's Compose example | Not needed, Out Plane serves HTTPS |
Pin a full version tag. The bare n8nio/n8n tag follows n8n's stable channel, and n8n ships a new minor version most weeks, so an unpinned redeploy can upgrade you without warning.
Deploy n8n on Out Plane
- Create the database. Open Create → Database, name it
n8n-db, pick Europe (Frankfurt), the region closest to apps in Germany, keep version 17 and select Create database. The region cannot change later. - Add a role and a database. On the Access tab, create a role named
n8n, then a database namedn8nowned by that role. n8n creates its own tables and changes them during upgrades, so make it the owner. - Copy the connection values. In the Connection panel, pick the
n8nrole and database and choose the.envformat. You needPGHOSTandPGPASSWORD. - Create the app. Open Create → Application, choose the Image source, enter
n8nio/n8n:2.47.4and name the appn8nflows. Names use letters and numbers only, 5 to 45 characters, and cannot change later. - Set the port. Under Ports, change the default
8080to5678, protocol HTTP, with Public on. The console previews the address, for examplehttps://n8nflows-5678-acme.outplane.app, whereacmeis your team. - Add the volume. Under Volumes, select Create volume, name it
n8ndata, size 10 GB, mount path/home/node/.n8n. - Paste the environment variables. Replace the placeholders, the timezone and
acme:
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=<PGHOST>
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
DB_POSTGRESDB_PASSWORD=<PGPASSWORD>
DB_POSTGRESDB_SSL_ENABLED=true
N8N_ENCRYPTION_KEY=<output of openssl rand -hex 32>
N8N_HOST=n8nflows-5678-acme.outplane.app
N8N_PROTOCOL=https
N8N_WEBHOOK_URL=https://n8nflows-5678-acme.outplane.app/
N8N_EDITOR_BASE_URL=https://n8nflows-5678-acme.outplane.app/
N8N_PROXY_HOPS=1
GENERIC_TIMEZONE=Europe/Berlin
TZ=Europe/Berlin
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true- Deploy. Pick op-34 under Compute and select Deploy app. On first start, n8n creates its tables in PostgreSQL. If the final address differs from the one in your variables, fix them and deploy again.
- Create the owner account at once. Open the address. n8n shows a sign-up screen, and whoever completes it first becomes the instance owner, so do it before you share the link.
The same app with the outplane CLI, after you create the database in the console:
outplane volume create n8ndata --size 10 --json --fields id
outplane app create n8nflows --image n8nio/n8n:2.47.4 \
--port 5678:http:public --size op-34 --volume <VOLUME_ID>:/home/node/.n8n \
--env DB_TYPE=postgresdb --env DB_POSTGRESDB_HOST=<PGHOST> \
--env DB_POSTGRESDB_DATABASE=n8n --env DB_POSTGRESDB_USER=n8n \
--env DB_POSTGRESDB_PASSWORD=<PGPASSWORD> --env DB_POSTGRESDB_SSL_ENABLED=true \
--env N8N_ENCRYPTION_KEY=<your-key> \
--env N8N_HOST=n8nflows-5678-acme.outplane.app --env N8N_PROTOCOL=https \
--env N8N_WEBHOOK_URL=https://n8nflows-5678-acme.outplane.app/ \
--env N8N_EDITOR_BASE_URL=https://n8nflows-5678-acme.outplane.app/ \
--env N8N_PROXY_HOPS=1 --env GENERIC_TIMEZONE=Europe/Berlin --env TZ=Europe/Berlin \
--env N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
outplane app get n8nflowsAttaching a volume is best effort, so confirm the mount in the outplane app get output.
n8n Docker Environment Variables
From n8n's environment variable reference:
| Variable | What it does |
|---|---|
DB_TYPE | sqlite by default. Set postgresdb to use PostgreSQL. |
DB_POSTGRESDB_SSL_ENABLED | false by default. Out Plane databases require SSL, so set it to true. |
N8N_ENCRYPTION_KEY | Encrypts stored credentials. n8n generates one on first launch if you leave it unset. |
N8N_WEBHOOK_URL | Public base URL for test and production webhooks. It replaces WEBHOOK_URL, deprecated from n8n 2.35.0. |
N8N_EDITOR_BASE_URL | Public editor URL, also used in the emails n8n sends. |
N8N_PROXY_HOPS | Set to 1 when n8n runs behind a reverse proxy, as it does on Out Plane. |
N8N_HOST, N8N_PROTOCOL | Host and protocol n8n uses to build its own URLs. N8N_PORT stays at its default, 5678. |
GENERIC_TIMEZONE | Timezone for Schedule Trigger and other time-based nodes. America/New_York if unset. |
N8N_DEFAULT_BINARY_DATA_MODE | default keeps files in memory. filesystem writes them to the volume. |
N8N_PAYLOAD_SIZE_MAX | Largest request payload in MiB, 16 by default. |
Change them under Settings → Environment and select Save & deploy, or run outplane env set KEY=VALUE --app n8nflows --deploy. Three settings deserve care:
- The encryption key. n8n encrypts every saved credential, such as API tokens and OAuth secrets, with this key. Per the encryption key docs, n8n generates a random key on first launch and saves it to its config file unless you set your own, so set it on the very first deploy. Lose the key and a restored database cannot decrypt any credential, so you re-enter each one by hand.
- The webhook URL. Behind a proxy, n8n cannot work out its public address on its own. Without
N8N_WEBHOOK_URL, the editor shows webhook URLs on port 5678 that outside services cannot reach, as the reverse proxy guide explains. - Large files. Binary data stays in memory by default. If workflows move big files, set
N8N_DEFAULT_BINARY_DATA_MODE=filesystemso n8n writes them under/home/node/.n8non the volume instead.
n8n runs the code you write in Code nodes in task runners. Without extra setup it starts them inside the n8n container, which its task runner docs do not recommend for production or for instances that hold sensitive data. Their recommended setup adds a separate n8nio/runners container on the same version as n8n. That setup is outside this guide.
For email, add N8N_EMAIL_MODE=smtp with N8N_SMTP_HOST, N8N_SMTP_PORT, N8N_SMTP_USER, N8N_SMTP_PASS and N8N_SMTP_SENDER, as listed in n8n's user management docs.
Custom Domain and HTTPS
- Open Domains → Add domain, enter
n8n.example.com, and pickn8nflowswith port 5678. - Open the DNS dialog. Add a CNAME to
domains-management.outplane.appfor a subdomain, or the A record shown there for an apex domain. - Change
N8N_HOST,N8N_WEBHOOK_URLandN8N_EDITOR_BASE_URLto the new host and select Save & deploy.
HTTPS is issued automatically once DNS resolves, usually within 5 to 30 minutes, as the Domains guide explains. From the CLI, run outplane domain add n8n.example.com --app n8nflows --port 5678, then outplane domain dns n8n.example.com. n8n builds every webhook URL from N8N_WEBHOOK_URL, so set up the domain before you paste webhook URLs into other services, or update them there afterwards.
Scale n8n With Queue Mode
One n8n process receives triggers and runs every execution. When a burst of webhooks or a slow workflow starts holding up the rest, queue mode splits the work: the main instance puts executions on a Redis queue and separate workers run them. Queue mode is part of the free Community Edition. Out Plane's managed database is PostgreSQL only, so Redis runs as an app you operate.
- Deploy Redis. Create an app from the Redis template, for example
n8nredis, with TCP port 6379 kept private and a volume at/data. - Switch the main instance. Add these to
n8nflowsand select Save & deploy. n8n does not support filesystem binary data in queue mode, so binary data moves to the database:
EXECUTIONS_MODE=queue
QUEUE_BULL_REDIS_HOST=n8nredis
QUEUE_BULL_REDIS_PORT=6379
N8N_DEFAULT_BINARY_DATA_MODE=database- Add a worker. Create an app named
n8nworkerfrom the samen8nio/n8n:2.47.4image, with port 5678 kept private and no volume. Set the Start command to/docker-entrypoint.sh worker, which starts n8n as a worker through the image's own entrypoint script. Give it the sameDB_POSTGRESDB_*variables, the sameN8N_ENCRYPTION_KEYand the four queue variables above. Workers need the main instance's key to read credentials. - Scale workers. A worker has no volume, so it can run several instances: 1 on Starter, up to 5 on Pro and up to 10 on Growth. Run
outplane app scale n8nworker --instances 3, or change the count under Compute.
Scaling is manual: Out Plane does not add instances by itself when the queue grows. Most small setups never need queue mode, so start with one instance and add it when executions start to wait.
Updates and Backups
Image apps never update themselves. Read the n8n release notes for every version between yours and the target, then open Deployments → Deploy and enter the full reference, or run:
outplane deploy create n8nflows --image n8nio/n8n:NEW_VERSION --waitn8n's update guide asks for an update at least once a month, so you never jump many versions at once. n8n applies database migrations when it starts, and deploying the older tag again does not reverse them, so take a dump first. The single instance restarts during the deploy, so webhooks sent in that window fail. In queue mode, move the main app and every worker to the same tag together.
A full n8n backup has two parts, per n8n's backup guide: the database, and the .n8n folder for the encryption key in its config file. With your own N8N_ENCRYPTION_KEY, keeping that value safe covers the second part.
- Database. Managed PostgreSQL includes automated backups and point-in-time recovery. Before each update, also keep a dump you control:
pg_dump "$(outplane db url n8n-db --role n8n --database n8n)" -Fc -f n8n-$(date +%F).dump- Encryption key. Keep
N8N_ENCRYPTION_KEYin your password manager. Out Plane does not snapshot volumes, and a database backup is useless without the key.
To export workflows and credentials as JSON as well, open the app's Shell tab, or run outplane app shell n8nflows, and run n8n export:workflow --backup --output=/home/node/.n8n/backups/workflows/. The files land on the volume, so copy them somewhere else too.
n8n Hosting Cost on Out Plane
Compute is billed per instance-minute and volumes per GB per month, as listed on the pricing page:
| Item | Rate | 30-day month |
|---|---|---|
n8nflows on op-34 | $0.0004167 per minute | $18.00 |
n8n-db, managed PostgreSQL | $6.00 per database | $6.00 |
| 10 GB volume | $0.30 per GB per month | $3.00 |
| Usage total | $27.00 |
Starter costs $9 a month with $9 of usage included, so this setup comes to $27 a month. On Pro ($29 with $15 included) it comes to $41. Starter and Pro both start with a 14 day free trial. Bandwidth, SSL and custom domains are not billed, and the bill does not count executions. Queue mode adds Redis on op-22 with a 10 GB volume ($9.00) and $18.00 for each op-34 worker instance.
Self-Hosted n8n vs n8n Cloud
n8n's pricing page prices n8n Cloud by workflow executions. Starter lists €20 a month, billed annually, for 2,500 executions. Pro lists €50 a month, billed annually, for 10,000. n8n Cloud starts with a 14 day free trial. Business, at €667 a month billed annually, is a self-hosted license that adds SSO, environments and Git version control. The free Community Edition leaves those out, along with credential sharing and log streaming, per n8n's edition comparison.
| n8n on your own server | n8n on Out Plane | n8n Cloud | |
|---|---|---|---|
| Who updates n8n | You | You deploy a new tag | n8n |
| HTTPS | You run a proxy, such as Traefik | Included | Included |
| Database | You run PostgreSQL and its backups | Managed PostgreSQL | Run by n8n |
| What you pay for | The server | Compute, database and volume | Monthly executions |
| Custom nodes | Yes | Yes, in your own image | Listed as self-hosted only |
Facts checked on 12 November 2026 against n8n.io/pricing, the edition comparison and the Docker install docs.
n8n Cloud fits when you want n8n to run updates, scaling and the database, and your executions fit its plans. Self-hosting fits when you run many executions, need custom nodes, or want to choose where workflow data lives. Pick Business when you need SSO or environments on your own infrastructure.
FAQ
Is n8n free to self-host?
Yes. The Community Edition is free under the Sustainable Use License, for internal business use or personal use. You pay for hosting, about $27 a month on Out Plane for this setup, and Starter starts with a 14 day free trial. SSO, environments, Git version control and sharing need a paid n8n license.
What port does n8n use?
- It is the default for
N8N_PORT, so on Out Plane you add port 5678 as public HTTP and the platform serves it over HTTPS on a normal address.
What happens if I lose the n8n encryption key?
Every saved credential becomes unreadable, and you re-enter each API token, password and OAuth connection by hand. Set N8N_ENCRYPTION_KEY yourself before the first start and store a copy outside Out Plane.
Do I need Redis to self-host n8n?
No. One n8n instance with PostgreSQL runs without Redis. Redis is needed only for queue mode, where it holds the queue that workers pull executions from.
Can n8n use SQLite or MySQL?
SQLite is the default and suits testing. n8n deprecated MySQL and MariaDB in version 1.0, and its database docs list only SQLite and PostgreSQL. Queue mode with SQLite is not recommended, so this guide uses PostgreSQL.
Can I run more than one n8n instance?
The main app has a volume, so it runs one instance. To spread executions across machines, use queue mode and scale the worker app. Running several main instances at once is n8n's multi-main mode, which needs an Enterprise license.
Where does my n8n data live on Out Plane?
The app runs in Germany. Workflows, executions and encrypted credentials sit in the PostgreSQL database, which runs in the region you pick, Frankfurt in this guide.