# Self-host Odoo

> An all-in-one business suite covering CRM, sales, inventory, accounting, and a website builder.

- Page: https://levelrail.com/templates/odoo/
- JSON: https://levelrail.com/templates/odoo.json
- Category: Applications
- Licence: LGPL-3.0-only (Copyleft license)
- Source: https://github.com/odoo/odoo
- Upstream docs: https://www.odoo.com/documentation

## Requirements
- Memory: about 2 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | odoo_db_data -> /var/lib/postgresql/data |
| odoo | odoo | 18 | 8069 | odoo_web_data -> /var/lib/odoo; odoo_addons -> /mnt/extra-addons |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| odoo | HOST | preset |
| odoo | PASSWORD | generated |
| odoo | USER | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy odoo --name my-odoo
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/odoo/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Odoo on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Odoo, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, odoo:18 is what you deploy there.

Self-host Odoo, Odoo docker compose file, deploy Odoo on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
