Deploy n8n with Coolify: A Practical Self-Hosting Guide
How we run self-hosted n8n on Coolify: server sizing, the one-click template and what we change in it, encryption keys, backups, upgrades and queue mode.
By Matthew Clarkson · June 18, 2024 · Updated November 17, 2026

Coolify is a self-hosted platform for deploying apps and databases on your own server. It takes care of the reverse proxy, SSL certificates, database backups and redeploys, which are the parts of self-hosting n8n that usually go wrong. We use it for client n8n instances when the client wants their own server without a Kubernetes cluster or a DevOps hire.
This guide covers the setup we use. It was last checked in November 2026 against Coolify v4.7 and n8n 2.47. If you would rather run plain Docker Compose, see our guides to self-hosting n8n and hosting n8n with Docker. If you are still deciding whether to self-host at all, start with the benefits of self-hosting n8n.
What Coolify does for you
You install Coolify once on a Linux server. From its web dashboard you can then:
- deploy apps from Docker images, Compose files or a library of one-click service templates (n8n is one of them)
- run PostgreSQL, Redis and other databases
- get and renew Let's Encrypt certificates through its built-in proxy
- schedule database backups to S3-compatible storage or SFTP
- read container logs, redeploy and roll back from the browser
Coolify v4 spent about two years in beta and reached a stable 4.0.0 release in April 2026. The self-hosted version is free. There is also a paid Coolify Cloud, where Coolify runs the dashboard and you still bring your own servers.
Coolify, plain Docker or n8n Cloud
Plain Docker Compose gives you full control. You also write and maintain the proxy config, certificate renewal and backup scripts yourself. That suits a team with someone who already does this work.
n8n Cloud is the hosted option. As of November 2026 the Pro plan is €50 a month on annual billing for 10,000 executions, and n8n stores Cloud data in Frankfurt. Only verified community nodes are available on Cloud. If you need data to stay in Australia, need unverified community nodes or run high volumes, self-hosting is the usual answer.
Coolify sits between the two. You own the server and the data, and you pay a fixed monthly server bill. You do not pay per execution.
One licensing point. Self-hosted n8n Community Edition is free under n8n's Sustainable Use License, which allows use for your own internal business purposes. It does not let you sell n8n itself as a hosted service to others. Some features (Git source control, SSO, environments, multi-main mode) need a paid licence.
Choose a server
Coolify's own minimum is 2 CPU cores, 2 GB of RAM and 10 GB of free disk. That is enough for Coolify alone. With n8n, PostgreSQL and the task runner container on the same box, we start at 2 vCPUs and 4 GB of RAM. Move to 8 GB when you have many workflows running at once or you keep a lot of execution history.
Use a fresh server with a current Ubuntu LTS release. Coolify installs Docker and its own proxy, and it can clash with whatever else is already on an older machine.
If your data needs to stay in Australia, pick a provider with an Australian region. DigitalOcean and Vultr both have Sydney data centres. As a reference point, a DigitalOcean Basic droplet with 2 vCPUs and 4 GB of RAM lists at US$24 a month (November 2026). Hetzner is cheaper but has no Australian location. Its nearest region is Singapore, which is fine for some workloads and not for data residency.
You also need a domain or subdomain for n8n, and ideally one for the Coolify dashboard.
Install Coolify
SSH into the server as root and run the installer from the Coolify docs:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
When it finishes, open http://YOUR_SERVER_IP:8000 and create the admin account straight away. Until you do, anyone who finds the IP can claim it.
Then point a subdomain such as coolify.example.com.au at the server and set it as the instance domain in Coolify's settings. Once the dashboard loads over HTTPS on that domain, you can close public access to ports 8000, 6001 and 6002 at the firewall. Keep 22, 80 and 443 open.
Deploy n8n from the template
In a project, choose Create New Resource, pick a one-click service and search for n8n. There are three variants:
- n8n: a single container with SQLite. Fine for testing.
- n8n with PostgreSQL: n8n, PostgreSQL 16 and a task runner container. This is the one we use for most production instances.
- n8n with PostgreSQL and Worker: adds Redis and a separate worker for queue mode. See the scaling section below.
The PostgreSQL template already does a lot of what we used to set up by hand. It wires n8n to its own Postgres container with generated credentials, runs Code node tasks in a separate n8nio/runners container (external task runner mode, which n8n recommends for production) and keeps the n8n 2.0 security defaults, such as blocking environment variable access from the Code node.
Before you press Deploy, open the environment variables and storage. We change three things.
1. Set the encryption key yourself
n8n encrypts every saved credential (API keys, OAuth tokens, database passwords) with an encryption key. If you do not set N8N_ENCRYPTION_KEY, n8n generates a random key on first start and saves it inside the /home/node/.n8n volume. As of November 2026 the single-instance PostgreSQL template does not set this variable, so the key lives only in that volume.
If you lose the volume and only have a database backup, every credential in it is unreadable. So we generate a key with openssl rand -hex 32, add it as N8N_ENCRYPTION_KEY and store a copy in the client's password manager. Do this before the first deploy. If n8n has already written its own key, a different key in the environment will stop it starting until they match.
The worker template does set the key, from a generated SERVICE_PASSWORD_ENCRYPTION value. Copy that value somewhere safe as well.
2. Set the timezone
The template defaults GENERIC_TIMEZONE and TZ to UTC. Change both to your timezone, for example Australia/Brisbane or Australia/Sydney. Schedule triggers use GENERIC_TIMEZONE, so a 9am report will run at the wrong hour if you leave it.
3. Pin a current version
Coolify's templates pin a specific n8n image, and the pin can lag well behind n8n's releases. In November 2026 the template pinned 2.10.x while n8n's stable release was 2.47.7. Change the n8nio/n8n and n8nio/runners tags to the version you want. The two must always be the same version.
We pin an exact version and never use stable or latest, so an upgrade only happens when we choose it.
Domain and deploy
Set your n8n domain (for example https://n8n.example.com.au) on the n8n service and point a DNS A record at the server. Deploy, watch the logs until every container reports healthy, then open the domain and create the owner account. Coolify gets the certificate for you.
Backups
Coolify can back up the PostgreSQL database inside the n8n service on a schedule. It reads the credentials from the container's environment, which the n8n template already provides. Add an S3-compatible storage destination in Coolify (for example AWS S3, Cloudflare R2 or Backblaze B2), then turn on scheduled backups for the database with a daily cron and a retention limit. Pick a bucket region that matches your data residency needs.
Database backups do not cover everything:
- The n8n volume (
/home/node/.n8n). It holds the generated encryption key if you did not set your own, plus any binary data n8n stores on the filesystem. Back it up separately or make sure nothing in it is irreplaceable. - The encryption key. Keep it in a password manager, away from the server.
- Coolify itself. Coolify has its own instance backup under Settings > Backup. It is useful if you have to rebuild the Coolify server.
Test a restore before you need it. Coolify's docs suggest restoring into a throwaway database first. We restore onto a spare server, start n8n with the same encryption key and check that a workflow with saved credentials still runs.
Execution data
n8n prunes old execution data by default. The defaults keep executions for 336 hours (14 days) and at most 10,000 of them. If you need history for longer, raise EXECUTIONS_DATA_MAX_AGE. If the database is growing too fast, lower it, or set EXECUTIONS_DATA_SAVE_ON_SUCCESS=none so only failed runs are kept.
Upgrading n8n
To upgrade, change the image tag on both n8nio/n8n and n8nio/runners, then redeploy. Read the release notes first. We take a fresh database backup before every upgrade and try anything beyond a patch release on a copy of the instance.
n8n 3.0 has been in beta since 27 October 2026. Plan that upgrade as a project of its own:
- n8n says the upgrade is one-way, so you cannot go back to 2.x on the same database.
- The
~/.n8n/binaryDatafolder is renamed to~/.n8n/storage, so check your volume mounts. - The old version 1 of the AI Agent node is removed. Workflows already using the Tools Agent behave the same.
- 2.x has a Migration Report under Settings that lists affected workflows and settings. Run it before you upgrade.
Upgrading Coolify is separate and does not touch your apps. Under Settings > Updates you can let it update itself on a schedule or upgrade by hand when it suits you. Check that no deployments are running before you start.
Scaling and queue mode
Most single-team instances run comfortably on one server. When they don't, resize the server first. It is the cheapest fix and needs no changes to n8n.
When one n8n process is no longer enough, use the "n8n with PostgreSQL and Worker" template. It runs n8n in queue mode: the main instance puts executions on a Redis queue and a separate worker container runs them. Queue mode is included in the free Community Edition. Running more than one main instance (multi-main) needs an Enterprise licence.
Things to know before you switch:
- Every worker needs the same
N8N_ENCRYPTION_KEYas the main instance. The template handles this. - Each worker needs its own task runner container. The template includes one for its worker.
- The Simple Memory node for AI agents is not reliable in queue mode, because a conversation's next message may land on a different worker. Use Postgres Chat Memory or Redis Chat Memory.
- You can move PostgreSQL to its own server later. Coolify can manage several servers from one dashboard.
When Coolify is the wrong fit
- Strict change control. If every infrastructure change needs a reviewed pull request and an audit trail, version-controlled Compose files or your existing infrastructure-as-code tooling will suit you better than a dashboard.
- Multi-region high availability. A single Coolify server is a single point of failure. If n8n must survive a data centre outage, you need a different design.
For most businesses that want their own n8n server, Coolify does the job with little ongoing effort.
Frequently asked questions
Is Coolify free?
The self-hosted version is free and open source. You pay for the server. Coolify Cloud, where Coolify hosts the dashboard for you, is a paid service.
Can I keep n8n data in Australia?
Yes. Run Coolify on a server in an Australian region (DigitalOcean and Vultr both have Sydney), and send backups to a bucket in an Australian region. n8n Cloud stores data in Frankfurt.
What happens if I lose the encryption key?
Your workflows will restore from a database backup, but every saved credential will be unreadable and you will have to re-enter them all. Set the key yourself and keep a copy outside the server.
Do I need Redis?
Not for a single n8n instance. Redis is only needed for queue mode, where it holds the queue of executions for the workers.
Can I run other apps on the same server?
Yes. Coolify gives each service its own domain and certificate. Watch memory use, because n8n and PostgreSQL will compete with anything else on a 4 GB server.
If you want us to set up or look after a self-hosted n8n instance, see our n8n consulting services or book a 15-minute call.
Last updated on November 17, 2026
Free tool · 1 minute
AI Agent Idea Generator
Describe a painful process and get concrete AI agent concepts for your industry.
Continue Reading
View all
n8n vs Temporal vs Prefect: Visual Workflows or Workflows as Code?
Temporal makes code durable, Prefect orchestrates Python pipelines, and n8n connects business systems visually. When each one is the right call, and how they work together.
Oct 27, 2026

n8n vs Activepieces: The Open-Source Alternative, Compared
Activepieces is the newest serious alternative to n8n, and its licence is the main reason to look. How the two compare on licence, pricing, integrations and AI agents.
Oct 27, 2026

n8n vs Make: Which Workflow Tool Should You Build On?
Make and n8n look alike on the canvas and bill very differently. Where each one wins, what they cost as workflows grow, and how we move clients from one to the other.
Oct 27, 2026
Sick of reading about automation?
Book a free 15-minute intro call. We’ll talk through what you’re trying to automate and whether we’re a good fit.