To self-host n8n in Australia, rent a Linux VPS in an Australian data centre and run n8n in Docker with a Postgres database. Put Nginx in front with a free SSL certificate, then set up backups and a routine for updates. Self-hosting beats n8n Cloud when you run many workflows, need your data kept in Australia, or want custom nodes and full control. n8n Cloud is better if you have a few simple workflows and don’t want to look after a server.
Self-hosted n8n vs n8n Cloud: the short comparison
n8n is “fair-code” software. Its Community Edition can be self-hosted for free under n8n’s Sustainable Use License, which covers using it inside your own business. n8n Cloud is the paid, hosted version run by n8n itself. Plans, prices and limits change, so check the current details on n8n’s own site before you decide.
| Factor | n8n Cloud | Self-hosted n8n |
|---|---|---|
| Setup effort | Minutes. Sign up and start building. | An hour or two if you’re comfortable with Linux. |
| Ongoing maintenance | Handled by n8n. | You (or someone you pay) handle updates, backups and security. |
| Execution limits | Plans are based on monthly executions. | No execution caps from n8n. You’re limited by your server. |
| Data location | Wherever n8n hosts it (check their current docs). | Wherever you put the server, such as an Australian data centre. |
| Custom code and nodes | Restricted compared with self-hosting. | Install community nodes and npm packages, and change environment settings. |
| Cost shape | Monthly fee that rises with usage. | Fixed server cost plus your time. |
When self-hosting n8n makes sense
- You run a lot of executions. Workflows that poll every minute, process webhooks from a busy form, or loop over large lists can burn through a Cloud plan quickly. On your own server, extra executions cost nothing until you need more CPU or RAM.
- Your data needs to stay in Australia. If your workflows handle customer details, health information or financial records, keeping n8n and its database onshore makes it easier to answer client and auditor questions. It doesn’t make you compliant on its own. You still need sensible access controls and a privacy policy that matches what you do.
- You need low latency to Australian systems. If n8n talks to a local database, an on-premises system or Australian APIs, a server in Australia keeps round trips short.
- You want community nodes or custom code. Self-hosting lets you install community nodes and allow extra npm modules in Code nodes.
- You’re running AI agents with long-running jobs. Agent workflows that call large language models can run for minutes. On your own server you control timeouts and memory.
When n8n Cloud is the better choice
- You have a handful of workflows that run a few times a day.
- Nobody on your team is comfortable with SSH, Docker or Linux updates.
- You’d rather pay a monthly fee than spend time on patches and backups.
- You’re testing whether n8n suits you at all. You can export your workflows and move to self-hosting later.
The honest rule: a self-hosted server that nobody updates or backs up is worse than Cloud. If you self-host, commit to the maintenance or pay someone to do it.
What you need before you start
- A VPS running Ubuntu 24.04 LTS. For light use (a few dozen workflows, no heavy AI or file processing), 2 CPU cores and 2 GB RAM is a workable start. If you run AI agents, process large files or expect many concurrent executions, start with 4 GB RAM.
- A domain or subdomain, such as
n8n.yourbusiness.com.au, with an A record pointing at the server’s IP address. - SSH access with a non-root user that has sudo rights.
Our self-managed VPS servers start at $15.00/month for 1 core and 1 GB RAM. For n8n we’d suggest VM2 (2 cores, 2 GB RAM, 40 GB, $25.00/month) as a minimum, or VM3 (2 cores, 4 GB RAM, 60 GB, $40.00/month) if you use AI nodes. If you need a domain, .com.au registration is $19.89 for the first year.
Step-by-step: self-host n8n with Docker, Postgres and Nginx
This is a sensible default setup. n8n’s options change between versions, so check the official n8n documentation for anything that behaves differently on your version.
1. Secure the server
Update the system and turn on the firewall. Only allow SSH, HTTP and HTTPS.
sudo apt update && sudo apt upgrade -y
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
Use SSH keys and disable password logins in /etc/ssh/sshd_config once your key works.
2. Install Docker
Docker’s convenience script installs Docker Engine and the Compose plugin. See the Docker documentation for other install methods.
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER
Log out and back in so the group change applies.
3. Create the n8n project
mkdir ~/n8n && cd ~/n8n
Create a .env file. Generate a long random encryption key with openssl rand -hex 32 and store a copy somewhere safe, such as a password manager. If you lose this key, you lose access to every saved credential in n8n.
N8N_HOST=n8n.yourbusiness.com.au
N8N_ENCRYPTION_KEY=paste-your-long-random-key-here
POSTGRES_PASSWORD=another-long-random-password
TIMEZONE=Australia/Brisbane
Use Australia/Brisbane if you’re in Queensland (no daylight saving). Use Australia/Sydney, Australia/Melbourne, Australia/Adelaide or Australia/Perth as needed. This matters because Schedule triggers use it.
4. Write the Docker Compose file
Create docker-compose.yml:
services:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: n8n
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: n8n
volumes:
- pg_data:/var/lib/postgresql/data
n8n:
image: docker.n8n.io/n8nio/n8n:latest
restart: unless-stopped
ports:
- "127.0.0.1:5678:5678"
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_USER: n8n
DB_POSTGRESDB_PASSWORD: ${POSTGRES_PASSWORD}
N8N_HOST: ${N8N_HOST}
N8N_PROTOCOL: https
WEBHOOK_URL: https://${N8N_HOST}/
N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}
GENERIC_TIMEZONE: ${TIMEZONE}
TZ: ${TIMEZONE}
N8N_PROXY_HOPS: 1
volumes:
- n8n_data:/home/node/.n8n
depends_on:
- postgres
volumes:
pg_data:
n8n_data:
A few notes on these choices:
- Port bound to 127.0.0.1. n8n is only reachable through Nginx, not directly from the internet.
- Postgres instead of SQLite. SQLite works for testing. Postgres handles concurrent executions better and is easier to back up properly.
- WEBHOOK_URL. Without it, webhook URLs shown in the editor may point at the wrong address.
- Version tag. Once you’re running, consider replacing
latestwith a specific version number. That way updates only happen when you choose.
Start it:
docker compose up -d
docker compose logs -f n8n
5. Put Nginx and SSL in front
sudo apt install -y nginx certbot python3-certbot-nginx
Create /etc/nginx/sites-available/n8n:
server {
listen 80;
server_name n8n.yourbusiness.com.au;
location / {
proxy_pass http://127.0.0.1:5678;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 300s;
client_max_body_size 50m;
}
}
The Upgrade and Connection headers matter. The n8n editor uses a live connection, and without them the editor won’t update properly. Enable the site and get a certificate:
sudo ln -s /etc/nginx/sites-available/n8n /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d n8n.yourbusiness.com.au
Certbot sets up automatic renewal. Visit your domain and create the owner account straight away, before anyone else finds the setup screen.
Backups: what to save and how
You need three things to rebuild n8n:
- The Postgres database (workflows, credentials, execution history).
- The encryption key in your
.envfile. - Your
docker-compose.yml.
A simple nightly database dump, run from cron:
cd ~/n8n
docker compose exec -T postgres pg_dump -U n8n n8n | gzip > ~/backups/n8n-$(date +%F).sql.gz
find ~/backups -name "n8n-*.sql.gz" -mtime +14 -delete
Copy those files off the server. A backup that lives only on the same VPS won’t help if the VPS fails. Also export workflows as JSON now and then. That makes it easy to put them in Git:
docker compose exec -T n8n n8n export:workflow --all --output=/home/node/.n8n/workflows.json
Test a restore at least once. Restore to a spare server and check that your credentials still decrypt.
Keeping it running
- Updates: read the n8n release notes first, because some releases include breaking changes. Take a backup, then run
docker compose pull && docker compose up -d. - Operating system: apply Ubuntu security updates regularly, or turn on unattended upgrades.
- Execution history: busy instances fill the database with old execution data. n8n has settings to prune old executions automatically. Check the docs for the current variable names.
- Monitoring: use an uptime checker on your n8n URL. Consider an error workflow that alerts you by email or chat when a workflow fails.
- Memory: if n8n restarts during big jobs, it’s usually running out of RAM. Split large batches, or move to a larger server.
Common mistakes we see
- Leaving port 5678 open to the internet with no SSL.
- Not saving the encryption key, then losing every credential after a rebuild.
- Setting the wrong timezone, so 9am schedules fire at 7am or 10am.
- Running the
latestimage with automatic updates, then waking to broken workflows. - Keeping backups only on the same server.
How One Click Hosting can help
We run our own Australian data centre on our own APNIC-registered network, so your n8n server and its data stay in Australia. We also do a lot of automation work with n8n ourselves.
- Do it yourself: our self-managed VPS servers give you a clean server for the steps above, from $25.00/month for a VM2. Billing is monthly or yearly.
- Want help with the server: our app hosting service is built for apps made with AI tools. It covers Ubuntu 24.04 LTS VPS servers with full root access, snapshots and DDoS protection. Server setup and hardening is $300 once-off. The optional care plan (updates, monitoring, backup checks, test restores) is $49/month, month to month. Extra help is $140/hour.
- Not sure which way to go: call 1300 108 263 (Mon to Fri, 8am to 5pm Brisbane time) or contact us. We’ll talk through your workflows and suggest a sensible setup.
Frequently asked questions
Is self-hosted n8n free?
The Community Edition is free to self-host under n8n’s Sustainable Use License for internal business use. You still pay for the server and spend time maintaining it. Some features need a paid n8n licence, so check n8n’s site for the current list.
How much RAM does n8n need?
For light use, 2 GB is a workable minimum alongside Postgres. If you use AI agents, process large files or run many workflows at once, start with 4 GB and watch memory use.
Can I move my workflows from n8n Cloud to self-hosted?
Yes. Export your workflows as JSON and import them into your self-hosted instance. Credentials generally need to be re-entered, because they’re encrypted with a different key.
Does hosting n8n in Australia make me Privacy Act compliant?
Not on its own. Keeping data onshore can simplify things, but compliance depends on how you collect, use, secure and disclose personal information.
Should I use SQLite or Postgres?
SQLite is fine for testing on your own machine. For anything running in production, use Postgres. It handles concurrent executions better and is simpler to back up reliably.