How to do it...

Follow these commands to run the Odoo instance through docker-compose:

  1. Add a new docker-compose.yaml file with the following content:
version: '2'
services:
web:
image: odoo:12.0
depends_on:
- db
ports:
- "8069:8069"
db:
image: postgres:10
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
  1. Execute the following command in the Terminal to run the Odoo instance:
# docker-compose up -d

The preceding command will start the Odoo server on port 8069. In your local machine, you will be able to access the Odoo instance at http://localhost: 8069. Use the docker ps command to see the running containers.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset