Skip to content
Odotify

Self-hosted Odoo

Run Odoo on your own server

Self-hosting Odoo means you choose the server, the country and the version, and you keep root access. Here is what it takes, two ways to install it, and what a production setup needs.

Before you start

What you need

Odoo is a Python application on top of PostgreSQL. It runs on any modern Linux server, in your office or at any cloud.

  1. 01

    A Linux server

    Ubuntu 24.04 or Debian 13 is the easy path (Odoo 20 needs PostgreSQL 16, which Debian 12 does not ship). 2 vCPU and 4 GB of memory comfortably serve a small team; add CPU and memory as users grow.

  2. 02

    PostgreSQL

    On the same server for most companies, or a managed database when you need high availability.

  3. 03

    A domain and TLS

    A name such as erp.yourcompany.com, and a reverse proxy like nginx with a Let's Encrypt certificate in front of Odoo.

  4. 04

    Somewhere for backups

    Off the server: object storage such as S3 or Wasabi, so a lost server is not lost data.

Diagram of a self-hosted Odoo server: a Linux server with PostgreSQL 16, Odoo 19 and an nginx reverse proxy with Let's Encrypt, sending database and filestore backups every night to an S3 or Wasabi bucket
A production Odoo server: four layers on one machine, and backups that leave it every night.

Three ways to self-host Odoo

All three run the same Odoo. They differ in how much of the day-to-day work stays with you.

Official packages

Install Odoo with apt from Odoo's own repository

  • Closest to Odoo's documentation
  • Simple for one database on one server
  • You handle the proxy, backups and updates

Docker

The official odoo image next to a postgres container

  • Easy to rebuild and to move between servers
  • Versions pinned in one file
  • You handle the proxy, backups and updates

Odotify, on your server

Your server, set up and run for you

  • Each instance in its own container, on any server you reach over SSH
  • TLS, firewall, backups, restore drills and monitoring included
  • One flat fee from $0, root access stays yours
The Odotify dashboard listing five Odoo instances with their Odoo version, server and status: running, unhealthy or provisioning
The Odotify dashboard: every Odoo instance on your servers in one list, with its version, server and status.

Install

Install Odoo in a few commands

Both routes give you a working Odoo on port 8069. Pick one, then follow the production checklist below before real users log in.

With Odoo's packages

Odoo publishes a Debian package for each version. It installs Odoo as a system service that starts with the server.

Ubuntu or Debian
# Ubuntu 24.04 or Debian 13, as a user with sudo
sudo apt-get update && sudo apt-get install -y postgresql wget gnupg
wget -qO - 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
# Odoo now answers on port 8069; its settings are in /etc/odoo/odoo.conf

With Docker

The official odoo image needs a PostgreSQL container beside it. Your own modules go in the addons folder.

compose.yaml
# compose.yaml, then: docker compose up -d
services:
  db:
    image: postgres:16
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: odoo
      POSTGRES_PASSWORD: change-me
    volumes: [db-data:/var/lib/postgresql/data]
  odoo:
    image: odoo:19.0
    depends_on: [db]
    ports: ["127.0.0.1:8069:8069"]
    environment:
      HOST: db
      USER: odoo
      PASSWORD: change-me
    volumes: [odoo-data:/var/lib/odoo, ./addons:/mnt/extra-addons]
volumes:
  db-data:
  odoo-data:

Commands for Odoo 19 Community. For Enterprise, install the code that comes with your subscription instead. Replace change-me with a strong password, and keep port 8069 closed to the internet: only the proxy should reach it.

Production checklist

What a production Odoo needs

Installing takes an hour. Running Odoo safely for years is the real work, and it is where most self-hosted setups fall short.

  • TLS and a reverse proxynginx in front, HTTPS only, and the websocket path sent to Odoo's gevent port (8072) when workers are on.
  • Workers and limitsSet workers from your CPU count, with memory and time limits, so one heavy report cannot stop everyone else.
  • Lock the database managerSet a strong admin_passwd and list_db = False, so nobody can download or drop a database from the web.
  • Backups you have restoredDaily database and filestore backups off the server, and a regular test restore. An untested backup is a hope.
  • UpdatesOdoo publishes fixes for each version often; the operating system needs security updates too.
  • Monitoring and a firewallKnow when the disk fills or Odoo stops answering, and block repeated failed logins.

Odotify does every item on this list, on your own server.

Self-hosting questions

01Can I self-host Odoo Enterprise?
02How big a server does Odoo need?
03Is self-hosting cheaper than Odoo.sh or Odoo Online?
04Docker or the official packages?
05Does self-hosting help with GDPR?

Your server. Odoo looked after.

Connect any Linux server you reach over SSH and Odotify installs, secures, backs up and updates Odoo on it. Start free on one instance.