Skip to Content
Menu
This question has been flagged
2 Replies
8692 Views

Hi,

I'm new at Odoo development and I would like to use docker-compose.

My problem is that I want to uses the enterprise version of Odoo and develop my custom module. The problem is that there is only one volumes "/mnt/extra-addons" and I want to bind several addons paths.

So, if there is a docker-compose expert, may be he can help me !


here is my docker-compose file:


version: '2'
services:
db:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
odoo11:
image: odoo:11.0
depends_on:
- db
ports:
- "8069:8069"
tty: true
command: -- --dev=reload
volumes:
- /home/benjapar/enterprise:/mnt/extra-addons
- ./o_addons/:/mnt/extra-addons
- ./o_etc:/etc/odoo
volumes:
db:
odoo11:



In bold my problem. How can I do for map the enterprise version which is one folder and my custom addons which are in another folder ?

thanks,
Benjamin
Avatar
Discard
Best Answer

You need to attach the odoo.conf and put all extra_addons path on it :

volumes:


- /home/benjapar/odoo.conf:/etc/odoo/odoo.conf
- /home/benjapar/enterprise:/mnt/entreprise-addons
- ./o_addons/:/mnt/extra-addons


In odoo.conf

addons_path = /mnt/entreprise-addons, /mnt/extra-addons

Avatar
Discard
Best Answer

Good

Avatar
Discard