Odoo is a suite of business management software tools including, for example, CRM, e-commerce, billing, accounting, manufacturing, warehouse, project management, and inventory management.
It is open-source, and is customizable. Github link
With these few easy steps, you can easily run you odoo instance using docker.
Here, I will guide you to setup odoo version 16.0 . However you can install any version as the steps are similer.
-
Step 1
- You need to install docker on your local machine.
- Once installed, go to the terminal and pull the image for v16.0
docker pull prashant7/odoo:odoo16
For other versions of odoo, you can pull the images from my docker hub.
- Now, that image is pulled. You need to run the container. For that, first create a new folder in your local machine and execute the following command. you can change the "/path/my_local_folder" with path of your folder.
docker run -it -p 8016:8069 -v "/path/my_local_folder":"mnt/addons" prashant7/odoo:odoo16 bin/bash
-
Step 2
- Your container is now up and running. The commands executed here will be limited to the container itself.
Start the postgres server
service postgresql start
- Start the odoo instance
/opt/odoo16/odoo/odoo-bin -c /etc/odoo16.conf --logfile=/
- Your container is now up and running. The commands executed here will be limited to the container itself.
-
Step 3
- Go to your browser and enter localhost:8016
syntax: http://<your_domain_or_IP_address>:port
Your Setup is complete!
- Go to your browser and enter localhost:8016
You can now see a login screen, enter the following credentials:
Email: admin
Password: admin
If you happen to close the conatainer or your system. The next time you want to run the odoo instance, you don't have to go through the hassle of setting up again.
Simply follow these steps:
- Start the docker container
- Open the terminal, run the following command
docker ps -a
- copy the container name or container id
- Start the container
docker start <container_name 0r container_id>
- Execute the container
docker exec -it <container_name 0r container_id> bin/bash
- Follow Step 2 and Step 3 mentioned previously.