AI & Machine Learning Products
Edge Network
Platform as a Service
Virtual & Dedicated Servers
Video Streaming Platform
Cloud for Mobile
Custom Services Products
Media & Entertainment
Financial Services
IT / Technology
Retail
Education
Web Acceleration
Video Streaming
Security & Protection
Cloud
Availability
Partnership Solutions
Corporate Solutions
In this article, we will discuss how to set up Odoo on an Ubuntu server using a Docker image. As a sample server, we will deploy a Gcore Basic instance, a low-cost virtual machine that saves you time and effort; you can have a server ready in just five minutes! Then we will install Docker on this server and run Odoo.
You don’t need much experience with Ubuntu and Docker administration to get Odoo up and running. Just follow the recommendations and CLI commands we provide here.
Odoo is an open-source business management software that offers a huge variety of modules, such as accounting, inventory, and sales. Odoo Community is available for free, without time and user number limits.
As mentioned above, we will run Odoo on a Gcore Basics instance. Here are the steps:
Before installing Docker and Odoo, make sure that the Ubuntu OS is up to date.
ssh ubuntu@<your_public_ip_address>
For example:
ssh ubuntu@79.133.126.172
ubuntu@odoo-server:~$ sudo su root@odoo-server:/home/ubuntu# apt update
To install Docker, run the following command:
root@odoo-server:/home/ubuntu# apt install docker.io
Odoo uses PostgreSQL as an internal database. For Odoo to work properly, you need to run the PostgreSQL server as well. To do so, use the following commands:
root@odoo-server:/home/ubuntu# docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15 root@odoo-server:/home/ubuntu# docker run -p 8069:8069 --name odoo --link db:db -t odoo
The Odoo server uses port 8069 as a default for HTTP connections. Add the inbound rule for this port to the firewall:
Note: You also can configure this rule using one command in CLI (it works for any virtual machine, not only for Gcore’s):
sudo ufw allow 8069/TCP
To access the Odoo, open a web browser on your device and enter the public IP address of your Odoo server that you obtained in Step 1, as well as the 8069 port:
http://<your_public_ip_address>: 8069
For example:
http://79.133.126.172: 8069
Congratulations! You have successfully set up Odoo on Ubuntu.
In this tutorial, we explained how to set up Odoo on an Ubuntu server using Docker image. Check out our other articles dedicated to setting up different types of software on Gcore Cloud instances:
This article discusses how GPUs are shaping a new reality in the hottest subset of AI training: deep learning. We’ll…
In this article, we explore how Intelligence Processing Units (IPUs) and graphics processing units (GPUs) drive the rapid evolution of…
Navigating the maze of hosting solutions can be a daunting task. Assessing the differences and deciding which best fits your…