Skip to content

Installation of an ERP: Odoo

Odoo

Odoo is a set of business management software tools that include, for example, CRM, eCommerce, invoicing, accounting, manufacture, warehouse, project management and inventory management. The community version is a free software, with GNU LGPLV3 licence. The enterprise version has additional owners' functions and services. The source code for the framework and The basic ERP modules are organized by Odoo S.A., based in Belgium.

Oddo is installed as a web service and is written in Python, JavaScript and XML.

Installation

The following file defines the services needed to launch Oddo 16 in docker containers. You can see this video to see how docker works: What is Docker?

version: '3.1'
services:
  web:
    image: odoo:16.0
    depends_on:
      - mydb
    ports:
      - "8069:8069"
    environment:
    - HOST=mydb
    - USER=odoo
    - PASSWORD=myodoo
  mydb:
    image: postgres:15
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_PASSWORD=myodoo
      - POSTGRES_USER=odoo
Copy the previous code into a file called docker-compose.yaml and executes the following command to start the services:

docker-compose up -d

You can add your user to docker group in order to avoid to execute docker commands as sudo.

sudo usermod -a -G docker [your_username]