Self-host Odoo Community

Suite of web-based business apps (CRM, website, e-commerce, inventory, accounting, HR and more) on one PostgreSQL database; this entry is the open-source Community edition. Run your own Odoo Community on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

Updated November 23, 2026

Running your own Odoo Community usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Odoo Community behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

Just ask your agent

Open a Plus workspace (Odoo Community runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

Set up Odoo Community on this workspace and give me the link. Follow https://envhaven.com/self-host/odoo.md

Then open the link it sends and create your Odoo Community account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Odoo Community’s docs require.

Or keep it private with Tailscale

The preview URL puts Odoo Community on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Odoo Community an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:

Set up Odoo Community on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/odoo.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
  • A Tailscale container runs beside Odoo Community, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
  • Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
At a glance
What it isSites, CRM and business
LicenseLGPL-3.0
Runs asDocker (odoo)
MemoryNo minimum stated; about 150 MB per light worker and about 1 GB per heavy worker, and about 3 GB for Odoo in the docs’ 4-CPU example with 8 workers (docs)
Plan that fitsPlus or larger
Web port8069
Documentationwww.odoo.com/documentation/20.0/administration/on_premise/deploy.html

What your agent takes care of

  • Installing it. Odoo Community runs from the official image, odoo, with its data in folders under ~/apps/odoo.
  • Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
  • Locking it down first. What Odoo Community’s docs say to set before it faces the internet, below.
  • Telling you what to back up: /var/lib/odoo (the filestore: attachments and sessions; mount a volume at the data_dir), the PostgreSQL database (volume at /var/lib/postgresql/data in the Docker example) and /etc/odoo/odoo.conf (configuration, including admin_passwd) (docs).

The settings it needs behind a proxy

  • proxy_mode = True (odoo.conf) or --proxy-mode: Makes Odoo use the proxy’s real host, scheme and client IP; enable it only behind a reverse proxy. (docs)
  • Proxy route for /websocket/ to the gevent port (8072 in the Nginx example): Live chat and bus traffic run on a separate worker port; the proxy must send /websocket/ paths there. (docs)
  • dbfilter (odoo.conf) or --db-filter: Regular expression that picks the database from the host name; required when several databases or the website app are used. (docs)
  • web.base.url (System Parameters in the app): Public base address Odoo uses in mails and reports; set it when host and container ports differ. (docs)
  • TLS at the proxy: The docs require HTTPS through an SSL-terminating proxy with a redirect from HTTP. (docs)

Before it faces the internet

  • Set a random admin_passwd (the master password) in the config file; it guards the database manager screens. (docs)
  • Block the database manager and hide the database list once a single database matches. (docs)
  • A proper db filter is part of securing the deployment. (docs)
  • Credentials travel in cleartext without HTTPS. (docs)
  • The Docker examples ship a placeholder database password. (docs)
  • Proxy mode trusts proxy headers, so enable it only behind a proxy. (docs)

Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

  • “Set the site’s name, logo and colors from the files I dropped into the workspace.”
  • “Create my first admin user and a second one with fewer rights.”
  • “Move Odoo Community to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to domains.envhaven.app, and the agent changes Odoo Community’s address settings to match.
  • “Update Odoo Community to the latest release.” It pulls the new image and recreates the container, data kept.

Instructions for the agent

The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

Set up Odoo Community on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, odoo, starting from the docs' compose file: https://github.com/docker-library/docs/blob/master/odoo/README.md. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: PostgreSQL (the image needs a separate server; Odoo 20 needs version 16 or above while the image page examples still use postgres:15).
- Keep the compose file in ~/apps/odoo and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Odoo Community's port 8069.
- The preview URL terminates HTTPS in front of Odoo Community: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/odoo.md for the preview URL, as Odoo Community's docs describe for running behind a proxy; skip any that apply only when Odoo Community serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/odoo.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Odoo Community up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.

What to know

  • In Docker, Odoo Community’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
  • Odoo needs HTTPS because it sends credentials in cleartext otherwise. (docs)
  • Live chat and the bus use a second port and a /websocket/ proxy route; a plain single-port HTTP tunnel needs that route added. (docs)
  • Odoo 20 needs PostgreSQL 16 or above, newer than the Docker page examples. (docs)
  • Odoo 20 needs Python 3.12 or later on source installs. (docs)
  • The container filestore is lost with the container unless a volume is mounted. (docs)
  • A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

Without a workspace

The manual route, on a server you run:

  1. Rent a Linux VPS, secure SSH, and create a user for the app.
  2. Install Docker and write a compose file from the official image.
  3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
  4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
  5. Keep the firewall closed except for the proxy, and schedule backups and updates.

Odoo Community’s own documentation covers each step for its install methods.

Sources

Facts about Odoo Community come from its own documentation, checked on 2026-11-23: