Odoo cloud hosting means running Odoo on a server you control, usually an Ubuntu cloud VPS, instead of renting a per-user SaaS plan. For Odoo Community that is a PostgreSQL database, the Odoo application, an Nginx reverse proxy with HTTPS, and tested backups. This guide walks through that setup step by step, with sizing advice and the India-specific points (GST, data location, INR billing) that matter before you move accounting or inventory data onto it.
The commands assume a fresh Ubuntu 22.04 or 24.04 server and Odoo 17 or 18. If you have not prepared the server yet, do the first 30 minutes of VPS setup first (non-root user, SSH keys, firewall).
When self-hosting Odoo on a VPS makes sense
Odoo is offered in several ways: Odoo Online (SaaS), Odoo.sh (Odoo's own platform), partner-hosted, and self-hosted. Self-hosting on a cloud VPS suits you when:
- You use Odoo Community (the open-source edition, licensed under LGPL v3) and want full control of the server and custom modules.
- You need to keep business data on infrastructure in India, with a provider you can contact directly. See the cloud hosting benefits and limits guide for the wider trade-offs.
- You have someone (an employee, a freelancer or an Odoo partner) who can patch the OS and handle upgrades.
It is a poor fit if nobody on your side can maintain a Linux server. In that case, ask a provider about managed service or use a hosted Odoo plan. Self-hosting is not "free": you pay with time for updates, monitoring and restore drills.
Size the server before you install
Odoo runs several worker processes, and each one uses RAM. The Odoo deployment documentation gives rules of thumb, which you should treat as starting points and confirm against the docs for your version:
- Roughly one worker per 6 concurrent users, and a maximum of about (CPU cores x 2) + 1 workers.
- Light requests use a modest amount of memory per worker, while heavy ones (large reports, imports) can use far more. Leave headroom for PostgreSQL and the OS.
As a practical starting point (RECOMMENDATION, not a benchmark):
| Team size (concurrent users) | Starting plan | Notes |
|---|---|---|
| Up to 5 | 2 vCPU, 4 GB RAM, NVMe disk | Single server, PostgreSQL on the same VPS |
| 5 to 15 | 4 vCPU, 8 GB RAM | Use workers; watch RAM during month-end reports |
| 15 and above | Test first; consider a separate database server | Load test with realistic data before go-live |
Fast disk matters more than people expect, because PostgreSQL is I/O heavy. Choose an SSD or NVMe plan and leave at least 30 to 40 percent of the disk free for the database, the filestore (attachments, PDFs) and backups in transit. Resizing later is easier if you pick a platform that lets you scale the plan.
Step 1: Install PostgreSQL and Odoo
Odoo needs PostgreSQL. Install it first, then add Odoo's official package repository (the exact URL for your version is in the Odoo documentation, Odoo packages installation):
sudo apt update && sudo apt install -y postgresql wget gnupg
wget -q -O - https://nightly.odoo.com/odoo.key | sudo gpg --dearmor -o /usr/share/keyrings/odoo-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/odoo-archive-keyring.gpg] https://nightly.odoo.com/18.0/nightly/deb/ ./' | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt update && sudo apt install -y odoo
This installs Odoo as a systemd service named odoo, running as the odoo user, with its configuration in /etc/odoo/odoo.conf. Check it with systemctl status odoo. By default it listens on port 8069 on all interfaces, which we will fix next so that only Nginx can reach it.
The nightly packages are rebuilt regularly. For production, note the exact version you deployed and plan upgrades deliberately instead of letting the server drift to a new build unexpectedly.
Step 2: Configure odoo.conf for production
Edit /etc/odoo/odoo.conf. A reasonable production baseline:
[options]
admin_passwd = <long random master password>
db_host = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python3/dist-packages/odoo/addons
http_interface = 127.0.0.1
proxy_mode = True
workers = 5
max_cron_threads = 1
limit_memory_soft = 2147483648
limit_memory_hard = 2684354560
list_db = False
logfile = /var/log/odoo/odoo-server.log
- admin_passwd is the master password for the database manager. Generate it with
openssl rand -base64 24and store it in a password manager. - http_interface = 127.0.0.1 keeps Odoo off the public internet; Nginx talks to it locally.
- proxy_mode = True tells Odoo to trust the
X-Forwarded-*headers from Nginx, so generated links use HTTPS and the real client IP. - workers enables multi-process mode. Set it from the sizing rule above; with
workers = 0Odoo runs in a single process, which is only for testing. - list_db = False hides the public database manager page. Create the database first (or from the command line), then turn it off.
Restart with sudo systemctl restart odoo. Memory limits above are examples; tune them to your RAM using the Odoo docs.
Step 3: Put Nginx and HTTPS in front
Use Nginx as the public entry point, with a Let's Encrypt certificate. The Nginx and Certbot steps are the same as for any web app, so follow the Nginx and HTTPS section of our Ubuntu cloud server guide for installation and certificates, then use a server block like this:
upstream odoo { server 127.0.0.1:8069; }
upstream odoochat { server 127.0.0.1:8072; }
server {
listen 443 ssl http2;
server_name erp.example.in;
# ssl_certificate lines added by Certbot
client_max_body_size 100m;
proxy_read_timeout 720s;
location /websocket {
proxy_pass http://odoochat;
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;
}
location / {
proxy_pass http://odoo;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
The /websocket block serves live features such as chat and notifications through Odoo's gevent process on port 8072, which exists when workers is greater than 0. Older Odoo versions used /longpolling instead, so check the deployment docs for your version. Point a DNS A record for your hostname to the server's IP before requesting the certificate.
Step 4: Lock down the server
An ERP holds invoices, customer data and sometimes payroll, so the basics matter:
- Allow only ports 22 (ideally restricted to your office IP), 80 and 443 in the firewall (
ufw allow 80,443/tcp). Do not open 8069, 8072 or 5432. - Keep PostgreSQL on localhost, which is the default on Ubuntu.
- Use SSH keys only and turn off password login.
- Enable
unattended-upgradesfor security patches, and runfail2banif you expose SSH. - Turn on two-factor authentication for Odoo admin users.
- Never use the default admin login with a weak password. Create named users for each person.
The monthly server management checklist covers the ongoing version of these tasks.
Step 5: Back up the database and the filestore
An Odoo backup has two parts, and you need both: the PostgreSQL database and the filestore (attachments and generated files). For a Debian-package install the filestore lives under /var/lib/odoo/.local/share/Odoo/filestores/<dbname>. A simple nightly script:
#!/bin/bash
set -euo pipefail
DB=mycompany
DEST=/backup/odoo/$(date +%F)
mkdir -p "$DEST"
sudo -u postgres pg_dump -Fc "$DB" > "$DEST/$DB.dump"
tar -czf "$DEST/filestore.tgz" -C /var/lib/odoo/.local/share/Odoo/filestores "$DB"
find /backup/odoo -maxdepth 1 -type d -mtime +14 -exec rm -rf {} +
Then copy that folder off the server (to object storage or another machine) with rclone or rsync. A backup on the same disk is not a backup. Our cloud server backup guide explains snapshots, offsite copies and restore tests. Do a restore test on a spare server before go-live: create an empty database with pg_restore, unpack the filestore into the matching folder, start Odoo and confirm you can open an old invoice with its PDF attachment.
India-specific points: GST, DPDP and billing
- GST and Indian accounting. Odoo ships an Indian localisation (the
l10n_inmodules) with GST taxes and a chart of accounts. Which GST features, for example e-invoicing and e-way bills, are available in Community and which need the Enterprise edition changes between versions, so confirm in the Odoo documentation for your version, and with your chartered accountant, before relying on them for filing. - Personal data. If your Odoo holds customer or employee data, India's Digital Personal Data Protection Act, 2023 applies to how you collect, protect and delete it. Hosting in India does not by itself make you compliant, but it simplifies where the data physically sits. See the official text on MeitY and our article on why businesses are moving hosting back to India.
- Latency. Staff on Indian networks reach a server in Delhi with low round-trip times compared with a server on another continent, which makes forms, barcode scans and POS screens feel faster. Measure with
pingandmtrfrom your office before you commit. - Billing. A VPS billed in INR with a GST invoice is easier to book as an expense and avoids foreign exchange charges on card payments.
Upgrades and day-two operations
- Minor updates (bug fixes within a version): take a backup and a snapshot, run
apt upgradeor update the Odoo package, restart, test the main flows. - Major version upgrades (for example 17 to 18) are projects, not routine updates. Custom modules usually need changes. Rehearse on a copy of production data on a separate server and agree a downtime window.
- Monitoring. Watch disk space, RAM, swap use and the Odoo log. Slow queries and long-running cron jobs show up there first.
- Custom modules. Keep them in a separate directory listed in
addons_pathand under version control, so you can rebuild the server from scratch.
How AvertHost can help
AvertHost runs managed Linux and Windows cloud VPS from a Tier-IV data centre in Delhi, with a 99.9% uptime SLA, INR billing with GST invoices and 24/7 support from an India-based team. A Linux cloud VPS with Ubuntu is the base for the setup above. We provide the server, not the Odoo application or its configuration: the install, the modules and the upgrades are your responsibility or your Odoo partner's, unless you agree otherwise with the support team in writing. Check the live pricing and plan specifications on the plan page before you size the server.
FAQ
Which Odoo edition can I self-host on a VPS?
You can self-host Odoo Community, which is open source under LGPL v3. Odoo Enterprise can also be installed on your own server, but it needs a paid Odoo subscription from Odoo S.A. Check the current licensing terms on odoo.com.
How much RAM does Odoo need?
For a small team of up to five concurrent users, 4 GB of RAM is a sensible starting point when PostgreSQL runs on the same server. Add RAM when you add workers or users, and test with your own data and reports.
Can I run Odoo with Docker instead?
Yes. The official Odoo Docker image and a PostgreSQL container work well on a KVM-based VPS. The reverse proxy, backup and security steps stay the same, and you must also back up the volumes. On a container-based VPS, Docker may be restricted, so see our KVM VPS guide.
Is hosting Odoo in India required by law?
The DPDP Act does not simply require every business system to be hosted in India, and rules can differ by sector (for example for regulated financial data). Ask your legal or compliance adviser which rules apply to your data.
How often should I back up Odoo?
Daily at minimum for the database and filestore, with at least one offsite copy, and an additional backup before every upgrade. Test a restore regularly, because an untested backup may not work when you need it.