docker icon indicating copy to clipboard operation
docker copied to clipboard

Docker compose and starting the odoo container with arguments

Open sel-carlitos opened this issue 4 years ago • 3 comments

Hi, I have compiled many pieces together from various blogs and posts and stuff. Anyways, here is my docker-compose.yml file:

image

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?

sel-carlitos avatar Jun 10 '20 04:06 sel-carlitos

hello. Try to add command: --init {MODULES} --without-demo all inside your web service.

zonclayv avatar Jun 30 '20 14:06 zonclayv

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 avatar Jul 05 '20 23:07 sel-carlitos

@sel-carlitos is this issue still needed? Can you close it if it is not needed?

lathama avatar Apr 11 '24 16:04 lathama