docker
docker copied to clipboard
Docker compose and starting the odoo container with arguments
Hi, I have compiled many pieces together from various blogs and posts and stuff. Anyways, here is my docker-compose.yml file:
Here is the file rather than a screenshot: docker-compose.txt
Everything works quite well. But how would you pass any of the poossible arguments to the odoo container found in: https://www.odoo.com/documentation/13.0/reference/cmdline.html
Should I just move out the odoo container out of the compose file to be able to work the exec
command?
hello.
Try to add
command: --init {MODULES} --without-demo all
inside your web service.
Thank you @zonclayv!!! This is precisely what I needed. Can you confirm that to initiate a database with a specific country localization you have to pass the l10n_XX package?
command:
--database some_db_name
--init crm,sale,stock,website,l10n_cl # FOR EXAMPLE FOR CHILE
--without-demo all
Seems to me that this is the right way? But not entirely sure if that's the way to go.
How would you go about it for countries where there is no localization like for example El Salvador?
@sel-carlitos is this issue still needed? Can you close it if it is not needed?