Quintessentia Network logo QuintessentiaNetwork Inc.
n8n

How to self-host n8n: setup, security and running it well

The short answer

Yes, you can self-host n8n, and the Community edition is free: you pay for the server it runs on and for the time it takes to look after it. The usual setup is n8n in Docker on a small cloud server, a PostgreSQL database, HTTPS in front of it, and backups you have tested. It takes an afternoon to start and a few hours a month to keep healthy.

A small white server rack with indigo status lights beside a laptop showing a node-based workflow and a backup drive
Illustration (AI-generated): a self-hosted automation server, with its backups kept apart from it.

n8n's own documentation is blunt about who should do it: it recommends self-hosting for expert users, warns that mistakes can lead to data loss, security issues and downtime, and suggests n8n Cloud for anyone not experienced at managing servers (n8n's Docker guide). What n8n costs on each plan is in n8n pricing in Canada; what n8n is, if you are new to it, is in what is n8n.

Self-hosted or n8n Cloud?

Self-hostedn8n Cloud
Who runs itYou, or whoever you hiren8n
What you payThe server, plus your time; no licence fee on the Community editionA monthly plan priced by executions
Where the data livesOn your server, in the region you chooseWhere n8n hosts it; check its terms
Updates and securityYour jobn8n's job
Best forTeams with someone who manages servers, or data that must stay in a chosen regionTeams that want automation without running infrastructure

Is self-hosted n8n free?

The software is. Without a licence key, n8n runs as the free Community edition, and you can stay on it. It is distributed under n8n's Sustainable Use License, which allows use for your own internal business purposes; n8n calls the model fair-code rather than open source. Some features, such as single sign-on and environments, need a paid licence even when you host it yourself. The full list is in n8n pricing in Canada.

What is not free is the running: a server, a database, backups, and someone to update and watch it.

What you need before you start

  • A server in your own account. A small cloud virtual machine is enough to begin. Choose the region where your data should live; for a Canadian business that may be a Canadian region.
  • Docker. n8n publishes an official Docker image, and its guide uses it. n8n's hosting documentation also covers Docker Compose and step-by-step guides for AWS, Azure and Google Cloud (n8n hosting).
  • A domain name and HTTPS. Webhooks need a public address, and the editor should never be reached over plain HTTP. A reverse proxy in front of n8n handles the certificate.
  • A database. n8n uses SQLite by default to save credentials, past executions and workflows. It also supports PostgreSQL, which is the better choice for anything in production.
  • Somewhere for backups that is not the same server.

The setup, step by step

  1. Create a persistent volume for n8n's data folder. n8n's guide says to keep this volume even when you use an external database, because it holds the encryption key for your saved credentials, along with logs and other important data. Lose it and your stored credentials cannot be decrypted.
  2. Start n8n from the official image, publishing its port (5678 by default) and setting the time zone. n8n sets two: the system time zone, and a separate one that its scheduled workflows use. Get both right, or a workflow meant for 9 a.m. Toronto time runs at the wrong hour.
  3. Point it at PostgreSQL with the database environment variables the guide lists, instead of the default SQLite file.
  4. Put HTTPS in front of it with a reverse proxy, and set the public address n8n should use for webhooks.
  5. Create the owner account and turn on two-factor authentication for every user.
  6. Back it up and test the backup. Restore the database and the data volume to a spare server at least once. A backup you have never restored is a hope, not a backup.

Self-hosting n8n in Canada

For many Canadian businesses the main reason to self-host is not the licence fee but control over where the data goes. Every workflow run passes data through n8n, and saved executions keep copies of it, so the server's location is the data's location.

  • Pick a Canadian region in your cloud provider when clients, contracts or your own policy expect data to stay in Canada. The major providers each offer Canadian regions.
  • Check the steps that leave the server. A workflow that sends a document to an AI model or a third-party service sends the data to wherever that service runs, whatever region n8n itself is in. Map each external call before you promise anyone residency.
  • Keep backups in the same jurisdiction as the server, or you have moved the data anyway.
  • Write it down. A short note of where n8n runs, where its backups go and which outside services each workflow calls answers most client security questionnaires.

What Canadian privacy law expects when data leaves the country, and what PHIPA and Quebec's rules add, is in where your data goes.

Keeping it secure

n8n's security documentation covers the controls it offers, including SSL, two-factor authentication policies, single sign-on on paid plans, turning off the public API when you do not use it, and a built-in security audit. In practice:

  • Do not leave the editor open to the whole internet. Restrict who can reach it, or put it behind your company's sign-in.
  • Keep n8n and the server updated. n8n releases often; updating with Docker means pulling the new image and restarting the container.
  • Store credentials in n8n's credential store, not pasted into workflows.
  • Run the security audit after setup and after larger changes.
  • Decide what execution data to keep. A saved run holds the inputs and outputs of each step, so a workflow that handles client records keeps copies of them. n8n prunes old executions by default, with a default maximum age of 14 days and a default maximum of 10,000 saved executions (execution data).

Running it day to day

  • Watch the disk. n8n's documentation warns that the database can grow and run out of storage if execution data is not managed.
  • Watch failures. Give important workflows an error workflow that alerts a person, so a broken step does not fail silently.
  • Update on a schedule, after reading the release notes, and test important workflows afterwards.
  • Write down how it is set up: the server, the variables, where backups go and how to restore them. The person who installed it will not always be the one who fixes it.

Common mistakes

  • Running the default SQLite database for a busy production instance.
  • Losing the data volume, and with it the encryption key for every stored credential.
  • Leaving the editor reachable from anywhere with only a password.
  • Never updating, then facing a large jump between versions.
  • Saving every execution forever, until the disk fills.
  • Setting only one of the two time zones, so schedules run at the wrong time.

How we help

We set up n8n for businesses in Canada and the United States and build the workflows on it: self-hosted in your own cloud account or on your own hardware, in the region you choose, with its database and its encryption key under your control, and a runbook that tells whoever maintains it how to restart it, restore it from a backup and upgrade it. There is no separate n8n price list on our site yet: the work is scoped and priced inside an automation engagement, from the prices on our AI automation page. An advisory hour is CAD $195, an Automation Blueprint is $4,500, and the minimum build engagement is $9,500. More on how we work with n8n is on our n8n implementation page. To start, book a scoping call.

FAQ

Questions worth asking first

Is self-hosted n8n free?

The software is: without a licence key n8n runs as the free Community edition, under its Sustainable Use License, which allows use for your own internal business purposes. Some features, such as single sign-on, need a paid licence. You still pay for the server, the database, backups and the time to look after it.

Can I run n8n locally?

Yes. n8n's Docker guide runs it on your own computer with Docker Desktop, reachable at localhost on port 5678. That suits learning and testing. For workflows other systems call through webhooks, run it on a server with a public address and HTTPS instead.

What database should self-hosted n8n use?

n8n uses SQLite by default to save credentials, past executions and workflows, and it supports PostgreSQL. SQLite is fine for trying it out; PostgreSQL is the better choice for production. Either way, keep n8n's data volume, because it holds the encryption key for your stored credentials.

How do I update self-hosted n8n?

With Docker, pull the new n8n image and restart the container with the same settings and data volume. Read the release notes first, back up the database and the data volume, and test your important workflows after the update.

Do I need to be technical to self-host n8n?

Yes. n8n recommends self-hosting for expert users and warns that mistakes can lead to data loss, security issues and downtime. If no one on your team manages servers, use n8n Cloud or have someone set it up and look after it for you.