# Odoo — Notes ## Explicit database name and `-i base` required on first run The official Odoo Docker image does not auto-initialize the database. Without specifying the database name and installing the base module, Odoo starts in multi-database manager mode and health checks fail with "Database not initialized". ```yaml args: ["-d", "DATABASE_NAME", "-i", "base"] ``` The `-i base` flag installs Odoo's base module and creates all database tables on first run. Subsequent runs with `-i base` are safe — it updates rather than reinstalls. ## First-run initialization takes 10–15 minutes Use a `startupProbe` with a long window to prevent premature restarts: ```yaml startupProbe: failureThreshold: 40 periodSeconds: 30 # up to 20 minutes total ``` Once the startup probe passes, regular liveness/readiness probes with `initialDelaySeconds: 0` take over.