تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
21485 أدوات العرض

Why can't odoo.conf be updated in Docker,It can only be updated manually,

  • If you do not use Docker, installation odoo will be updated automatically.


 /etc/odoo/odoo.conf

[options]

addons_path = /mnt/extra-addons

data_dir = /var/lib/odoo

; admin_passwd = admin

; csv_internal_sep = ,

; db_maxconn = 64

; db_name = False

; db_template = template1

; dbfilter = .*

; debug_mode = False

; email_from = False

; limit_memory_hard = 2684354560

; limit_memory_soft = 2147483648

; limit_request = 8192

; limit_time_cpu = 60

; limit_time_real = 120

; list_db = True

; log_db = False

; log_handler = [':INFO']

; log_level = info

; logfile = None

; longpolling_port = 8072

; max_cron_threads = 2

; osv_memory_age_limit = 1.0

; osv_memory_count_limit = False

; smtp_password = False

; smtp_port = 25

; smtp_server = localhost

; smtp_ssl = False

; smtp_user = False

; workers = 0

; xmlrpc = True

; xmlrpc_interface =

; xmlrpc_port = 8069

; xmlrpcs = True

; xmlrpcs_interface =

; xmlrpcs_port = 8071


الصورة الرمزية
إهمال
أفضل إجابة

Option 01:

Execute docker bash and edit the odoo.conf file

docker exec -it odoo15 bash

where odoo15 is the docker's container name

Then go to the odoo config folder and edit odoo.conf

Option 2:

Edit the docker configuration docker-compose.yml and add:

volumes:
- ./config:/etc/odoo
- ./extra-addons:/mnt/extra-addons

where  "./config" is the path in your folder where you can edit the file odoo.conf 



الصورة الرمزية
إهمال
أفضل إجابة

Works fine here using docker.

Are you sure you have your config file in a volume, so it is persisted ?

snippet from docker-compose.yml

    volumes:

- web-conf:/etc/odoo

go to where the web-conf volume is and you can make changes and restart the container and it is picked up

الصورة الرمزية
إهمال

but there should be a temple for that

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أكتوبر 23
9003
1
سبتمبر 23
3414
4
ديسمبر 23
46000
1
مايو 23
2373
2
أبريل 23
2948