Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
21488 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

but there should be a temple for that

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 10 23
9003
1
thg 9 23
3414
4
thg 12 23
46000
1
thg 5 23
2373
2
thg 4 23
2948