How you can shortly deploy the Odoo ERP resolution with Docker


When you’re trying to get a robust ERP resolution up and operating, Jack Wallen has the answer by means of Odoo and Docker.

ERP dashboard in Odoo
Picture: Jack Wallen

Throughout the world of open supply, there are many enterprise useful resource planning (ERP) instruments out there to deploy totally free that can assist convey what you are promoting’s useful resource planning to new ranges of effectivity and reliability. One such platform is Odoo, which occurs to be one of the crucial widespread open-source ERP options in the marketplace.

With Odoo you’ll be able to:

  • Enhance your gross sales
  • Combine providers
  • Streamline operations
  • Construct web sites
  • Handle funds
  • Amplify advertising and marketing
  • Handle stock
  • Supercharge your advertising and marketing
  • Enhance what you are promoting productiveness
  • Handle level of sale (PoS)

One factor that helps make Odoo stand out above the gang is the modules that may be put in to increase the function set of the platform. As of this writing, 61 modules may be added from throughout the Odoo market.

For those who may suppose Odoo is a problem to deploy, I provide you with Docker. By containerizing your Odoo deployment, you may get this platform up and operating in minutes.

SEE: Ethics coverage: Vendor relationships (TechRepublic Premium)

What you’ll want

The one factor you’ll must deploy Odoo is a operating server (or desktop) that helps Docker. I’ll be demonstrating on Ubuntu Server 22.04, however so long as your system can assist Docker (be it Linux, macOS or Home windows), you’re good to go.

How you can set up Docker on Ubuntu Server

On the off-chance you don’t have already got Docker put in on Ubuntu Server, let’s make that occur now.

The very first thing we’ll do is add the mandatory Docker repository (to put in the newest model of Docker-CE). Log into your server, and add the GPG key with:

curl -fsSL https://obtain.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Subsequent, add the repository:

echo “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://obtain.docker.com/linux/ubuntu $(lsb_release -cs) secure” | sudo tee /and so forth/apt/sources.listing.d/docker.listing > /dev/null

Set up the required dependencies with:

sudo apt-get set up apt-transport-https ca-certificates curl gnupg lsb-release -y

Replace apt and set up Docker (and the required parts) with the instructions:

sudo apt-get replace
sudo apt-get set up docker-ce docker-ce-cli containerd.io -y

Add your person to the Docker group with:

sudo usermod -aG docker $USER

Sign off and log again in for the adjustments to take impact.

How you can deploy Odoo as a Docker container

The very first thing we’ll do is pull the newest variations of Odoo and PostgreSQL with the instructions:

docker pull odoo:newest
docker pull postgres:newest

We’re going to deploy the database with persistent storage. Within the occasion one thing occurs to the Odoo container, it will guarantee the info will stay. The command to deploy the PostgreSQL container is:

docker run -d -v odoo-db:/var/lib/postgresql/knowledge -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres –identify db postgres

Our persistent knowledge quantity will likely be situated in /var/lib/postgresql/knowledge.

Subsequent, deploy the Odoo container with:

docker run -v odoo-data:/var/lib/odoo -d -p 8069:8069 –identify odoo –hyperlink db:db -t odoo:newest

Give the container a minute or so to deploy earlier than persevering with.

How you can open the firewall

When you’re utilizing a firewall (which you must), you’ll must open port 8069. With Uncomplicated Firewall, that command can be:

sudo ufw enable 8069

When you’re utilizing an RHEL-based distribution, the instructions can be:

sudo firewall-cmd –zone=public –add-port=8069/tcp –everlasting
sudo firewall-cmd –reload

Now, you’re able to deploy Odoo.

How you can entry the Odoo interface

Open an internet browser and sort http://SERVER:8069 (the place SERVER is the IP handle of the internet hosting server). You ought to be greeted by the database/admin setup web page (Determine A).

database admin setup for Odoo
Determine A: Right here you will need to configure a brand new database and an admin person.

You must also see a database grasp password within the greeting. Be sure to repeat that down, as you’ll want it to work with the database at a later time.

Give the database a brand new identify  that isn’t the identical identify used within the Docker command earlier, fill out an e mail handle (that will likely be used for the admin login) and a password, and end up the remainder of the required data. When completed, click on Create database. This course of will take a while, particularly in the event you choose to incorporate the demo knowledge.

As soon as the database creation completes, you’ll be introduced with the Odoo major web page (Determine B), the place you can begin putting in all the modules you’ll want to serve what you are promoting ERP performance.

list of applications that can be added on Odoo
Determine B: The Odoo market has loads of apps you’ll be able to add.

Congratulations, you simply deployed a robust ERP resolution in minutes. Do observe that a number of the apps listed within the Market do have an related value. Any app you see listed with an Improve icon more than likely comes with a required payment. Nevertheless, any app with an Set up icon needs to be free. Take pleasure in your new enterprise useful resource planning platform.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise professionals from Jack Wallen.

Leave a Comment