I have read some articles about how to setup Odoo via Docker and their is an actual image in docker hub. I tried to experiment something. I was able to mount Odoo Source code and Enterprise Addons folder in a multiple docker. This is the project folder looks like.
odoo_docker_projects
|---- enterprise_addons
|---- odoo_source_code
|---- odoo-1
|---- compose.yml
|---- odoo.conf
|---- odoo-2
|---- compose.yml
|---- odoo.conf
The volumes part in compose.yml may look like
volumes:
- ../enterprise_addons:/opt/odoo/enterprise_addons
- ./odoo_custom_addons:/opt/odoo/custom_addons
- ./config/odoo.conf:/etc/odoo.conf
Question. Is this a good practice? Is it ok to mount the odoo source code and enterprise addons to multiple docker?