
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.
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.
Where we do this for you
Rather we did it for you?
The services and builds closest to this guide.
Tool page
n8n integrations
Workflows with AI steps and custom code, hosted in the cloud or on your server.
Read moreIntegration
n8n WhatsApp
WhatsApp messages sent and received through n8n workflows, joined to your CRM and inbox.
Read moreService
AI integration
We audit how the work gets done, present a plan and build it.
Read moreQuestions
How to self host n8n: your questions answered
Have a question this guide does not answer?
Talk to usIs 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.
Keep reading
More guides and pages

Tell us what is taking too long.
It starts with a phone call, then an audit.

