Contact us
Two people working at a desk with two monitors
Not sure where AI fits?

An AI opportunity audit looks at how the work gets done and gives you findings and a plan.

Start with an audit
Two people working side by side at a desk with two monitors

Guide

How to self host n8n

Self-hosting n8n gives you control over data and costs, but you take on running the server. Here is what a sound self-hosted set-up involves, from server choice to backups, updates and security.

Written by the team at AI Integration Partners. About us

Is self-hosting right for you?

Self-host if data must stay on your infrastructure, you run high volumes, or you want full control, and someone can maintain a server. If not, n8n Cloud removes the maintenance.

Choosing a server

A virtual server from a cloud provider in your preferred region is common. Choose enough memory and processing for your workload, and an Australian region if data residency matters.

Installing with Docker

n8n's recommended method is Docker, usually with Docker Compose, which defines n8n and its database together and makes updates simpler. n8n's documentation provides example configurations.

Database

Use PostgreSQL rather than the default SQLite for anything beyond testing. It handles more load and is easier to back up.

HTTPS and domain

Put n8n behind a reverse proxy, such as Caddy, Traefik or Nginx, with HTTPS on your own domain. Webhooks from other services need a stable public address.

Key settings

Set an encryption key for credentials and keep a secure copy of it; without it, saved credentials cannot be decrypted. Set the webhook URL, timezone and execution data retention.

Backups and updates

Back up the database and n8n's data regularly, and test restoring. Update n8n regularly for fixes and security, reading release notes first and testing on a copy for major updates.

Security

Turn on user management with strong passwords and two-step login, restrict server access, keep the operating system updated, and monitor logs. For larger loads, queue mode spreads work across worker processes.

Where to start

Set up a test instance with Docker Compose and PostgreSQL, build a workflow, practise a backup and restore, then plan the production set-up.

Questions

How to self host n8n: your questions answered

Have a question this guide does not answer?

Talk to us
Is self-hosted n8n secure?

It can be, with updates, HTTPS, strong logins and restricted access.

What is the easiest way to self-host n8n?

Docker Compose on a cloud server, following n8n's documentation.

Do I need PostgreSQL for n8n?

It is recommended for production use.

How do I update self-hosted n8n?

Pull the new image and restart, after backing up and reading release notes.

What happens if I lose the encryption key?

Saved credentials cannot be decrypted. Keep it safe.

Can self-hosted n8n keep data in Australia?

Yes, if the server is in an Australian region.

Two people mapping a process on a whiteboard

Tell us what is taking too long.

It starts with a phone call, then an audit.

Talk to us
Talk to us