Home › Curriculum › Technical Foundations › Docker for Odoo
Linux, Git and Docker · 14 min · Docker 27 / Odoo 20 imageDocker for Odoo
Images, containers, volumes and networks, the official Odoo image, Compose for dev and small production, and its limits.
In this lesson
- Images, containers and volumes
- Compose and running Odoo commands
- Production considerations
Key points
- odoo:20.0 + postgres:16; addons at /mnt/extra-addons; filestore at /var/lib/odoo
- Volumes or you lose data
- Build FROM odoo:20.0 for extra Python packages
- Production: proxy + TLS, workers, backups of both volumes, pinned tags, health checks
Real-world example
A developer's docker compose down -v deleted both volumes and with them a week of test data. The team added a backup script, removed -v from habits, and documented 'down -v destroys data' in the README.
Questions and answers
Which two volumes must be backed up?
PostgreSQL data and the Odoo filestore (/var/lib/odoo).
Why pin odoo:20.0 rather than latest?
So major upgrades happen deliberately.