Zum Hauptinhalt springen

Settings Reference

Settings are stored in plain KEY=VALUE text files. They are merged in this order (later overrides earlier):

  1. ~/.odoo/images/odoo/default.settings (zodoo defaults, don't edit)
  2. /etc/odoo/settings (system-wide)
  3. ~/.odoo/settings (user-wide)
  4. ./.odoo/settings (project-specific, committed to your repo)

Set settings via CLI:

odoo setting <KEY> <VALUE> # project-level (./.odoo/settings)
odoo setting -u <KEY> <VALUE> # user-level (~/.odoo/settings)
odoo setting -s <KEY> <VALUE> # system-level (/etc/odoo/settings)

Or edit the files directly. Run odoo reload after manual edits.


Project Settings

SettingDefaultDescription
PROJECT_NAMEContainer name prefix and postgres volume name. Keep short (max ~20 chars).
DBNAMEPROJECT_NAMEPostgreSQL database name.
PROXY_PORTHTTP port to access Odoo in browser. Set with odoo setup next-port.
DEBUG_PORTPort for Python debugger. Set with odoo setup next-port.
EXTERNAL_DOMAINhttp://localhostPublic URL of the system. Comma-separated list of URLs is allowed; odoo status prints each on its own line.

Developer Settings

SettingDefaultDescription
DEVMODE01 = on restore: disable cronjobs/mail, reset all passwords to DEFAULT_DEV_PASSWORD.
DEFAULT_DEV_PASSWORDadminPassword set for all users when DEVMODE=1 and a DB is restored.
ODOO_DEMO01 = load demo data on db reset.
ODOO_ENABLE_DB_MANAGER01 = enable Odoo's built-in database manager at /web/database/manager.

Odoo Server

SettingDefaultDescription
ODOO_LOG_LEVELdebugOdoo log level: debug, info, warning, error, critical.
ODOO_DEBUG_LOGLEVELinfoLog level inside the debug container.
ODOO_WORKERS_WEB6Number of Odoo web worker processes.
ODOO_PYTHON_VERSIONPython version for the Odoo container (e.g. 3.12).
ODOO_INSTALL_LIBPOSTAL01 = install libpostal for address parsing.

Containers

SettingDefaultDescription
RUN_ODOO1Run the Odoo container (web + supervised sibling roles).
RUN_ODOO_CRONJOBS1Spawn the cronjobs sibling role inside the odoo container.
RUN_PROXY1Run the Node.js reverse proxy.
RUN_PROXY_PUBLISHED01 = expose proxy port to host (required for browser access).
RESTART_CONTAINERS01 = set restart: unless-stopped on all containers.

PostgreSQL

SettingDefaultDescription
POSTGRES_VERSION14PostgreSQL version: 11, 12, 13, 14, 15.
HOST_DB_PORTExpose postgres on this host port (macOS/WSL only).
NAMED_ODOO_POSTGRES_VOLUMEUse a named external volume (not deleted with down -v).
DB_SSLMODEdisablePostgreSQL SSL mode.

Queue Jobs

SettingDefaultDescription
ODOO_QUEUEJOBS_CHANNELSroot:1Queue channel configuration: root:4,magento2:1.
QUEUEJOBS_MAX_AGE_BEFORE_RESTART_MINUTES120Restart queuejob worker if idle for this long.

Registry

SettingDefaultDescription
HUB_URLDocker registry: host:port/path or user:password@host:port/path.
REGISTRY01 = rewrite all image URLs to HUB_URL, disable local builds. Use on production.
DOCKER_IMAGE_TAGTag for registry images (e.g. latest, v1.2.3).

Memory Limits

SettingDefaultDescription
LIMIT_MEMORY_HARD_WEB18 GBHard memory limit for web worker (bytes).
LIMIT_MEMORY_SOFT_WEB16 GBSoft memory limit for web worker.
LIMIT_MEMORY_HARD_QUEUEJOBS18 GBHard memory limit for queuejob worker.
LIMIT_MEMORY_HARD_CRON18 GBHard memory limit for cron worker.
LIMIT_MEMORY_HARD_UPDATE88 GBMemory limit during module updates.

APT Proxy (build acceleration)

SettingDescription
APT_PROXY_IPIP of apt-cacher-ng proxy, speeds up Docker builds by caching apt packages.
RUN_APT_CACHER1 = run the built-in apt-cacher container.

Warmup (startup performance)

SettingDefaultDescription
MAX_WARMUP_WORKERSODOO_WORKERS_WEBOverride warmup worker count.
MAX_PARALLEL_WARMUP4Max concurrent warmup HTTP requests.
ODOO_READY_TIMEOUT_S60Seconds to wait for Odoo to become reachable.
ODOO_WARMUP_REQUESTSworker countTotal warmup requests to send.

Extra Odoo config

Append arbitrary Odoo server config via settings:

# Add to [options] section of odoo.conf:
EXTRA_CONFIG_my_key=value

# Or edit ~/.odoo/settings/odoo.config (or odoo.config.<PROJECT_NAME>):
[options]
setting1=value1

[queue_job]
channels=root:4

Update strategy

SettingValueDescription
UPDATE_STRATEGY(empty)Update all modules listed in MANIFEST install.
UPDATE_STRATEGYodoo.shOnly update modules changed since last deployment (by version).