How to install Odoo 13 or 14 on Docker Container – Guide

There are some well known open source business management software and Odoo is one of them. Offers ERP, CRM, ECM, project planning and more… In this article, we learn how to install Odoo 14 and 13 into a docker container running on Ubuntu 20.04 LTS Focal fossa. Odoo is free enterprise software that covers a wide range of tasks. In addition to the classic ERP functions, the environment offers CRM, E-commerce, content management, project planning, warehouse management, accounting, people management, portal, knowledge base, product management, human resources, marketing and much more. most. The foundation of Odoo is the old OpenERP, which is based on a typical three-tier architecture. The core is the application server, which is responsible for the business logic and controls access to the database. The system also offers modules for the e-business, e-marketing and e-commerce areas. There are over 10,000 Odoo Apps – and the number is increasing every day. It is programmed in Python and offers a modern web interface that uses HTML 5.0 and JavaScript. It uses a PostgreSQL database server to manage business-relevant data and system configuration. While Docker is a container-based virtualization platform that can be installed on a popular operating system to create isolated containers (virtual machines), very lightweight. Steps to install Odoo 13/14 on Docker ContainerHere we are using Ubuntu 20.04 LTS as an operating system platform to install Docker, however the steps provided here to install Odoo can be used on any platform running Docker.

Check if the Docker is running

Just run a command -docker in your operating system’s command terminal to confirm that you have it. If you haven’t, install Docker on your operating system first, for that you can check our tutorials-

How to install and configure Docker Container on AlmaLinux 8

Install and configure Docker Container on Rocky Linux 8 or CentOS / RHEL 8Install Docker CE on Debian 11 Bullseye LinuxBest way to install Docker on Ubuntu 20.04…How to install Docker on Windows 10

Install Odoo Docker Image Well.

once you have Docker on your system, to install Odoo Container we only need to run a single command. It’s because the Docker hub already has an official pre-built Odoo image. To install Odoo 14, use this command: docker pull odoo: 14 For Oddo 13, use this: docker pull odoo: 13

Install PostgreSQL Database Docker Image

The next thing we need to define up is Odoo’s database for saving your data in Docker. Well, just like any other popular app, we already have a pre-built image for this database too. So just in your command terminal type- docker pull postgresDocker PostgreSQL and Odoo Images command

Create Database Container

Well, we’ve already downloaded the PostgreSQL image above, now let’s use it to create a container with a database. docker run -d -v odoo-db: / var / lib / postgresql / data -e POSTGRES_USER = odoo -e POSTGRES_PASSWORD = odoo -e POSTGRES_DB = postgres –name db postgres Note: Be sure to change the database user and password, including the database name, to what you want to assign before running the command. Explanation: Let’s break down the above command to understand what’s going on. docker run -d -v: This is a docker command to create and start the container using the downloaded image. odoo-db:/var/lib/postgresql/data – Using this, we create a separate dedicated folder that will store the database data. This means that even after removing the container, our Odoo data will remain intact for future use. POSTGRES_USER = odoo – A user created for database, change the value with whatever you want. POSTGRES_PASSWORD = odo0 – Password for the created database user. Also, change this value to set your password as well. POSTGRES_DB = postgres – This is the name of the database you want to use. –Name db – Name of the container to identify it. postgres – This is the name of the downloaded PostgreSQL image we are using to create the container.

Create and run the Odoo container

As we did with PostgreSQL, we also use the downloaded Odoo 14 or 13 image to create and run a container for it. For Odoo version 14 docker run -v odoo-data: / var / lib / odoo -d -p 8069: 8069 –name odoo –link db: db -t odoo: 14For Odoo Version 13 docker run -v odoo-data: / var / lib / odoo -d -p 8069: 8069 –name odoo –link db: db -t odoo: 13 Explanation: odoo-data: / var / lib / odoo: We have created a dedicated persistent data folder that will store Odoo data and configuration files and will remain there even after the container is deleted. -p 8069: 8069: Opening docker port 8069 to access Odoo web interface outside of docker. Or in simple words here we are mapping the docker container port to system port 8069. –Name odoo – This is the name we give to our container. –Link db: db – Linking the PostgreSQL container to Odoo so they can communicate. Whereas odoo: 13 or odoo: 14 are the Docker images we use to create a container.

Open port on firewall

Now, to access the Odoo web interface from outside the server where you installed it using the docker, we have to open its port 8069 on the system. For Ubuntu, Debian, Linux Mint and the like: sudo ufw allow 8069For RHEL, CentOS, AlmaLinux, RockyLinux, Oracle: firewall-cmd –zone = public –add-port = 8069 / tcp –permanentfirewall-cmd –reload

Access the Odoo Web interface and create a database

Now go to any PC or Laptop which can access the IP address of the server where you installed Docker and its container. After that, open the browser and point it to the server’s ip address along with the port number 8069. Example: http://192.168.0.102:8069 Enter the required information and create a database Create Odoo Database Install Apps and start using it on Odoo. Odoo applications installed on Docker containerCRM and ERP

Final note

I hope you like the guide How to install Odoo 13 or 14 on Docker Container. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

How to install Odoo 13 or 14 on Docker Container  2022  - 8How to install Odoo 13 or 14 on Docker Container  2022  - 73How to install Odoo 13 or 14 on Docker Container  2022  - 43How to install Odoo 13 or 14 on Docker Container  2022  - 8