Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to run my extra-addons module in dockerized odoo container

I have installed Docker in my system with odoo:latest and postgres:latest as a container, and i can successfully start & stop my odoo service.

But the problem is i can only see the base odoo modules in it instead i want to run my own created modules along with the base modules in the dockerized odoo.

I have searched many links but but failed to understand.

What should i do to run my own modules ?

Please help me with all the steps to it.

Thanks in advance.

like image 683
Ujjwal Singh Baghel Avatar asked Oct 27 '25 09:10

Ujjwal Singh Baghel


1 Answers

The solution to this problem has been resolved as-

Firstly i mounted my local folder which contains my extra-addons by the command-

$ docker run -v /path/to/your/local/folder:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo

Then check weather your local folder is mounted on the odoo container or not by-

$ docker exec -u root -it odoo /bin/bash

After logging-

$ ls /mnt/extra-addons

You should see your files which were present in your local/folder. Now, its done just restart your docker odoo server

To stop-

$ sudo docker stop db
$ sudo docker stop odoo
$ sudo service docker stop

To Start-

$ sudo service docker start
$ sudo docker start db
$ sudo docker start -a odoo

Now you can install your modules from the app.

like image 112
Ujjwal Singh Baghel Avatar answered Oct 28 '25 22:10

Ujjwal Singh Baghel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!