Your own n8n, ready for real work
n8n is a visual automation tool: you connect apps with boxes and arrows instead of code. Self-hosted, it runs next to your Odoo with no limit on runs.
- Your address such as automation.yourcompany.com, with HTTPS
- Docker setup that restarts by itself after a reboot
- Encrypted credentials with the key stored safely and backed up
- Nightly backups of workflows and credentials
- Error alerts on Telegram when any workflow fails
- History cleanup so old runs do not fill the disk
Why host it yourself
n8n can run on the same server as Odoo when there is spare memory (about 1 GB), or on a small separate server.
Installation, step by step
Excerpts from an n8n installation running in production next to Odoo.
-
Add a subdomain
One DNS record, for example
automation.yourcompany.com, pointing to your server. -
Run n8n in Docker
n8n listens only on the server itself and joins Odoo's private network, so workflows reach Odoo directly without going over the internet. Code steps run in a separate, limited container.
/odoo/n8n/docker-compose.yml (excerpt)services: n8n: image: n8nio/n8n:2.48.7 restart: unless-stopped environment: N8N_HOST: automation.yourcompany.com N8N_PROTOCOL: https N8N_WEBHOOK_URL: https://automation.yourcompany.com/ N8N_PROXY_HOPS: "1" N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY} # encrypts stored credentials GENERIC_TIMEZONE: Asia/Dhaka EXECUTIONS_DATA_PRUNE: "true" EXECUTIONS_DATA_MAX_AGE: "168" # keep 7 days of run history N8N_RUNNERS_MODE: external # code runs in the runners container N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN} volumes: - /odoo/n8n/data:/home/node/.n8n ports: - "127.0.0.1:5678:5678" mem_limit: 1g networks: [default, odoo-internal] # reaches Odoo as http://odoo:8069 runners: image: n8nio/runners:2.48.7 restart: unless-stopped environment: N8N_RUNNERS_TASK_BROKER_URI: http://n8n:5679 N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN} mem_limit: 512m networks: odoo-internal: { external: true, name: odoo_odoo-internal } -
Publish it with nginx and HTTPS
/etc/nginx/sites-enabled/n8n.conf (excerpt)upstream n8n { server 127.0.0.1:5678; } server { server_name automation.yourcompany.com; client_max_body_size 32m; proxy_read_timeout 300s; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; location / { proxy_pass http://n8n; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; # live editor updates proxy_set_header Connection $connection_upgrade; proxy_buffering off; } }Certificatecertbot --nginx -d automation.yourcompany.com -
Create the owner account and connect apps
You get the owner login. Odoo is connected with its own API key, Telegram with a bot token; both are stored encrypted inside n8n.
-
Back up workflows and credentials
Every night the workflows and the (still encrypted) credentials are exported, together with the encryption key needed to read them.
/odoo/scripts/n8n-backup.sh (excerpt)umask 077 docker exec -u node n8n-n8n-1 n8n export:workflow --all --backup --output=/home/node/.n8n/backup-work/workflows/ docker exec -u node n8n-n8n-1 n8n export:credentials --all --backup --output=/home/node/.n8n/backup-work/credentials/ tar -C "$WORK" -czf "$DEST/n8n-export.tar.gz" . install -m 600 /odoo/n8n/.env "$DEST/env.backup" # holds the encryption key -
Get told when a workflow fails
One error workflow is linked to all others. Any failure sends the workflow name, the failing step and a link to the run.

The error workflow: three steps that report any failed workflow to Telegram.
Your workflows in one place

Automation you own
Run workflows every minute if needed, at no extra cost.
Customer and order data never passes through a third-party automation service.
Workflows talk to Odoo on the private network: fast and never exposed.
Every automation is a diagram anyone on your team can follow.
Workflows and credentials restored in minutes after any problem.
A walkthrough so you can build simple workflows yourself.
Common questions
Is self-hosted n8n free?
The community edition is free to self-host for your own business use under n8n's license. You pay only for the server.
Can it run without Odoo?
Yes. n8n connects hundreds of apps; Odoo is one of them.
Who updates n8n?
Updates are a version change in one file and a restart, after a backup. It can be part of a monthly care plan.
