Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

Before you start

You need three things:

  • A 64-bit Linux VPS with a sudo user. For the package method, use Ubuntu 24.04: it is the version Odoo's documentation lists for the Odoo 19 .deb package. The Docker method works just as well on Debian as on Ubuntu.
  • A domain name, for example odoo.example.fr, with a DNS A record pointing to the VPS's IPv4 address. You need it for the HTTPS certificate.
  • PostgreSQL: Odoo only works with it, version 13 or later for Odoo 19. Ubuntu 24.04 ships PostgreSQL 16.

Community or Enterprise? This guide installs the Community edition, which is free software (LGPLv3 licence) with a public package repository. The Enterprise edition adds apps, but its packages can only be downloaded with a subscription from the publisher; there is no apt repository for it.

Container (LXC) or virtual machine (KVM)? Odoo, PostgreSQL and Nginx need no kernel module: they run in a container VPS as well as in a virtual machine. Docker needs a container with nesting enabled. The differences are explained in the guide KVM or container VPS.

Odoo strongly recommends Linux over Windows for production: its multi-processing server, the one you use with several users, is not available on Windows. Do the basic security settings first (SSH key, updates): the guide securing a Linux VPS gives the order to follow.

02

How much RAM and how many vCPUs for your number of users

Odoo's documentation gives a sizing method for the multi-processing server. It counts concurrent users, not accounts: thirty accounts are not all working in Odoo at the same second.

  • One worker process serves about 6 concurrent users.
  • Maximum number of workers: (number of vCPUs × 2) + 1. Scheduled tasks (cron) also use processor time.
  • Memory per worker: Odoo assumes one request in five is heavy (about 1 GB) and the rest light (about 150 MB), an average of 0.8 × 150 + 0.2 × 1024 ≈ 325 MB per worker.

Which gives, for Odoo alone:

  • Up to about ten concurrent users: 2 workers and 1 cron, about 1 GB for Odoo.
  • About thirty concurrent users: 5 workers and 1 cron, about 2 GB, and at least 3 vCPUs.
  • About sixty concurrent users: this is the documentation's example, with 4 cores, 8 workers and 1 cron, about 3 GB.

Add memory for PostgreSQL, which caches the most-read data, and for the system. These are estimates: extra modules, large imports or heavy PDF reports weigh more. Watch free -h and processor load during the first weeks, and move up a tier if needed. To compare tiers, see the guide choosing a VPS.

The disk matters as much as memory: every Odoo screen queries PostgreSQL, and an NVMe disk answers a database's small random reads much faster.

03

Method 1: the official packages on Ubuntu 24.04

Install PostgreSQL, add the Odoo 19 Community repository with its signing key, then install Odoo. The package creates the odoo system user, the PostgreSQL role of the same name and the odoo service:

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/19.0/nightly/deb/ ./' | sudo tee /etc/apt/sources.list.d/odoo.list
sudo apt-get update && sudo apt-get install -y odoo

PDF reports (quotes, invoices) go through wkhtmltopdf, which is not part of the package. Odoo requires version 0.12.6 for headers and footers to show; it is the package the official Docker image installs too:

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
sudo apt install -y ./wkhtmltox_0.12.6.1-3.jammy_amd64.deb

The master password protects creating, copying and deleting databases. Generate a long random one, as the documentation advises:

python3 -c 'import base64, os; print(base64.b64encode(os.urandom(24)).decode())'

Then replace the contents of /etc/odoo/odoo.conf (sudo nano /etc/odoo/odoo.conf). The memory and time limits are those of the documentation's example, and workers is set to 2 here; replace XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with the generated password and adjust workers to the previous section:

[options]
admin_passwd = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
db_host = False
db_port = False
db_user = odoo
db_password = False
proxy_mode = True
http_interface = 127.0.0.1
workers = 2
max_cron_threads = 1
limit_memory_hard = 1677721600
limit_memory_soft = 629145600
limit_time_cpu = 600
limit_time_real = 1200
limit_request = 8192
  • http_interface = 127.0.0.1 only listens on the machine itself: only Nginx talks to Odoo.
  • proxy_mode = True trusts the headers sent by Nginx (visitor address, HTTPS). Only enable it behind a proxy.
  • workers above 0 enables the multi-processing server and the live chat worker on port 8072.

Restart Odoo and check that it is listening on ports 8069 and 8072:

sudo systemctl restart odoo
sudo systemctl status odoo --no-pager
sudo ss -ltnp | grep -E ':(8069|8072)'
sudo tail -n 50 /var/log/odoo/odoo-server.log

Then move on to the HTTPS section.

04

Method 2: Odoo with Docker Compose

First install Docker and Docker Compose with the official script: the guide installing Docker on a VPS covers each step. Then create a folder for Odoo:

mkdir -p ~/odoo/config ~/odoo/addons
cd ~/odoo
nano compose.yaml

Paste this file, based on the example of the official odoo image, and replace YYYYYYYYYYYYYYYY with a strong password, the same in both places:

services:
  web:
    image: odoo:19.0
    depends_on:
      - db
    ports:
      - "127.0.0.1:8069:8069"
      - "127.0.0.1:8072:8072"
    volumes:
      - odoo-web-data:/var/lib/odoo
      - ./config:/etc/odoo
      - ./addons:/mnt/extra-addons
    environment:
      - HOST=db
      - USER=odoo
      - PASSWORD=YYYYYYYYYYYYYYYY
    restart: unless-stopped
  db:
    image: postgres:16
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_USER=odoo
      - POSTGRES_PASSWORD=YYYYYYYYYYYYYYYY
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - odoo-db-data:/var/lib/postgresql/data/pgdata
    restart: unless-stopped
volumes:
  odoo-web-data:
  odoo-db-data:

The ports are published on 127.0.0.1 only, and this matters: Docker writes its own firewall rules, and a port published on all addresses would stay reachable from the Internet even with UFW active. PostgreSQL is not published at all.

Then create config/odoo.conf (nano config/odoo.conf), replacing XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with a master password generated as in method 1:

[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
admin_passwd = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
proxy_mode = True
http_interface = 0.0.0.0
workers = 2
max_cron_threads = 1
limit_memory_hard = 1677721600
limit_memory_soft = 629145600
limit_time_cpu = 600
limit_time_real = 1200
limit_request = 8192

Here, http_interface = 0.0.0.0 is intended: Odoo must listen on the container's interface for Docker to pass connections to it, and publishing on 127.0.0.1 is what keeps it closed to the Internet. Start both containers and follow Odoo's startup:

docker compose up -d
docker compose logs -f web

The official image already contains wkhtmltopdf for PDF reports. Your extra modules go in ~/odoo/addons.

05

HTTPS with Nginx, ports and firewall

Odoo sends credentials in cleartext: its documentation requires HTTPS in production. Nginx handles it and sends /websocket connections (live chat, notifications) to port 8072. The configuration below is a simplified version of the example in Odoo's documentation; Certbot will add the certificate and the redirection to HTTPS:

sudo apt install -y nginx certbot python3-certbot-nginx
sudo nano /etc/nginx/sites-available/odoo
upstream odoo {
  server 127.0.0.1:8069;
}
upstream odoochat {
  server 127.0.0.1:8072;
}
map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}
server {
  listen 80;
  server_name odoo.example.fr;
  client_max_body_size 100m;
  proxy_read_timeout 720s;
  proxy_connect_timeout 720s;
  proxy_send_timeout 720s;

  location /websocket {
    proxy_pass http://odoochat;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header X-Forwarded-Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
  }

  location / {
    proxy_set_header X-Forwarded-Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_redirect off;
    proxy_pass http://odoo;
  }

  gzip on;
  gzip_types text/css text/plain text/xml application/xml application/json application/javascript;
}

client_max_body_size raises Nginx's upload limit, 1 MB by default, too little to attach documents or import files. Enable the site, get the certificate with automatic redirection to HTTPS, then open only SSH, 80 and 443 TCP:

sudo ln -s /etc/nginx/sites-available/odoo /etc/nginx/sites-enabled/odoo
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d odoo.example.fr --redirect
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw enable

Ports 8069 and 8072 stay closed from the outside, as does PostgreSQL's 5432: everything goes through Nginx.

Create the database, then close the manager. Open https://odoo.example.fr/web/database/manager, enter the master password and create your database, for example prod, with the language, country and administrator account. Odoo's documentation then strongly recommends disabling this manager on any Internet-facing server. Add these lines to the [options] section of your odoo.conf:

list_db = False
db_name = prod
dbfilter = ^prod$

Then restart Odoo: sudo systemctl restart odoo with the packages, docker compose restart web with Docker. To send e-mails (quotes, invoices, invitations), declare an SMTP server with authentication in Odoo's technical settings, and set the reverse DNS of the VPS's IP address to your domain name.

06

Backups and updates

An Odoo backup has two parts: the PostgreSQL database and the filestore, the folder where Odoo keeps attachments and images. One without the other is not enough. Run the commands below as root (sudo -i).

With the packages, the filestore is in the home folder of the odoo user:

mkdir -p /root/backup-odoo
sudo -u postgres pg_dump -Fc prod > /root/backup-odoo/prod-$(date +%F).dump
tar -czf /root/backup-odoo/filestore-$(date +%F).tar.gz -C /var/lib/odoo/.local/share/Odoo/filestore prod

With Docker, from the ~/odoo folder:

docker compose exec -T db pg_dump -U odoo -Fc prod > prod-$(date +%F).dump
docker compose cp web:/var/lib/odoo/filestore/prod ./filestore-prod

Then copy these files off the VPS, with rsync or scp, to another machine. A backup that stays on the same server disappears with it. Test a restore from time to time with pg_restore on a test database.

Updates within version 19 (fixes published every night):

With the packages:

sudo apt update && sudo apt upgrade -y
sudo systemctl restart odoo

With Docker, from ~/odoo:

docker compose pull && docker compose up -d

Moving to a new major version, for example from 18 to 19, is another matter: the database must be migrated with dedicated scripts. For the Community edition, that is the job of the community project OpenUpgrade. Always try it on a copy, never on the production database.

07

What CloudFive offers, and when it is not the right choice

CloudFive has no ready-made Odoo plan: you install it yourself, as in this guide, on one of our two Linux VPS in France:

  • the Ryzen VPS, on a Ryzen 9 9950X with DDR5 memory and an NVMe disk: each core is fast, which shortens screen loading and report generation;
  • the Intel VPS, on a Xeon E5-2687W v4 with DDR4 ECC memory, our cheapest VPS, for a small team;
  • both are Linux containers (LXC) with nesting enabled, where Docker works, with root access, a dedicated IPv4 address and editable reverse DNS, a 1 Gb/s port and basic anti-DDoS protection included;
  • snapshots are taken from the customer area before an update, and changing tier does not require a reinstall when you add users.

The servers are in France, at CLOUD FIVE, a French company, on its own network AS218808: your business data does not leave the country. It is monthly, with no commitment, and support answers in French by ticket, on Discord and by phone, 7 days a week. Prices are on the pricing page. To also host the company website on the same VPS, see hosting a website on a VPS.

It is not the right choice if:

  • you do not want to administer anything: Odoo on a VPS needs updates, checked backups and, one day, a version migration. CloudFive does not offer managed Odoo;
  • you want the Enterprise edition: the subscription is taken from Odoo's publisher, it is not included in the VPS;
  • you have hundreds of concurrent users, or want to split Odoo and PostgreSQL onto separate machines: a dedicated server gives the memory and cores you need;
  • you were thinking of a Windows VPS: Odoo advises against Windows in production, take a Linux VPS;
  • your teams work far from France: every Odoo screen is a request, and distance is felt with every click.
08

Frequently asked questions

How do I install Odoo on an Ubuntu VPS?

On Ubuntu 24.04, install PostgreSQL, add the official nightly.odoo.com/19.0/nightly/deb repository with its key, then apt-get install odoo. Install wkhtmltopdf 0.12.6 for PDFs, set up /etc/odoo/odoo.conf (master password, proxy_mode, workers), and put Nginx with a Let's Encrypt certificate in front of Odoo.

Odoo with Docker or with packages, which should I choose?

Both work. Docker Compose (official odoo image and postgres image) isolates Odoo and updates with docker compose pull; the packages integrate with the system and update with apt. With Docker, publish ports 8069 and 8072 on 127.0.0.1 only.

How much RAM does Odoo need?

According to Odoo's documentation, one worker serves about 6 concurrent users and uses around 325 MB on average. For about ten concurrent users, plan for roughly 1 GB for Odoo, plus PostgreSQL and the system; about sixty needs roughly 3 GB for Odoo alone.

Which ports should I open for Odoo?

Only 80 and 443 TCP, plus SSH. Odoo listens on 8069 and live chat on 8072, but these ports must stay closed from the outside: Nginx receives visitors over HTTPS and relays /websocket to 8072.

How do I back up an Odoo database?

Export the PostgreSQL database with pg_dump -Fc and copy the filestore, which holds attachments: /var/lib/odoo/.local/share/Odoo/filestore with the packages, /var/lib/odoo/filestore in the Docker image. Then send both to another machine.

Where can I host Odoo in France?

On a Linux VPS in France, with a French company. CloudFive has no ready-made Odoo plan, but its Ryzen 9 9950X and Intel Xeon VPS in France, with root access, dedicated IPv4 and basic anti-DDoS included, monthly with no commitment, run Odoo with the packages or with Docker.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay