Home › Curriculum › Deploy, Operate & Upgrade › Docker and container deployments
Install and deploy · 14 min · Docker 27 / Odoo 20Docker and container deployments
Running Odoo in containers for staging and production: images, Compose stacks, proxies, persistent volumes, updates and backups.
In this lesson
- A production container stack
- Updating and rolling back
- Backups and choosing the platform
Key points
- Pinned image, PostgreSQL with persistent volume or managed DB, proxy with TLS/websocket
- Mounted config, secrets via env
- Update with a one-off --stop-after-init container; keep previous tag
- Back up DB + filestore off-host; prefer what your team can operate
Real-world example
A team upgraded production by changing the image tag to latest; a new major version pulled in and failed to start against the old database. Pinning tags, building their own image and running updates in a one-off container ended surprise upgrades.
Questions and answers
Why bake modules into the image?
Reproducible deployments; the same artefact runs in staging and production.
What does a health check do?
Lets Docker detect and restart an unhealthy container.