Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
How it works...
Docker allows you to create system images and then ship them around to run them on other servers. Docker images are created by writing a Dockerfile, which describes how to add layers generally to a pre-existing Dockerfile. The Docker images are hosted at https://hub.docker.com, and, in this recipe, we have used official images of PostgreSQL and Odoo.
Before running the Odoo instance container, we need to set up a container for PostgreSQL. In the first step, we ran the Docker image for PostgreSQL 10. The command will search for thePostgreSQL Docker image. If it is not available in your system, Docker will download it. In the command, we passed the --name db option. Here, db will be the name of the PostgreSQL container. In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access