From 614e4fef12fecb712e2bbe90f809d77bcdbba12c Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 30 Aug 2026 16:45:14 -0600 Subject: [PATCH] fix(odoo_17, odoo_18): provide odoo.conf via config mount and enable proxy_mode (#1124) Same root cause as odoo_19 (#1108, fixed in #1110): the compose file bind-mounts ../files/config over /etc/odoo, but with mounts = [] the directory is empty, hiding the image's /etc/odoo/odoo.conf. As a result wait-for-psql.py crashes with configparser.NoSectionError: No section: 'options' and the web container never starts. Ship odoo.conf through the template config mount instead, with proxy_mode enabled so websocket/POS/livechat work behind Traefik. Co-authored-by: Claude Fable 5 --- blueprints/odoo_17/template.toml | 10 +++++++++- blueprints/odoo_18/template.toml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/blueprints/odoo_17/template.toml b/blueprints/odoo_17/template.toml index 88608292..2a56f390 100644 --- a/blueprints/odoo_17/template.toml +++ b/blueprints/odoo_17/template.toml @@ -3,9 +3,17 @@ main_domain = "${domain}" [config] env = {} -mounts = [] [[config.domains]] serviceName = "web" port = 8_069 host = "${main_domain}" + +[[config.mounts]] +filePath = "config/odoo.conf" +content = """ +[options] +addons_path = /mnt/extra-addons +data_dir = /var/lib/odoo +proxy_mode = True +""" diff --git a/blueprints/odoo_18/template.toml b/blueprints/odoo_18/template.toml index 88608292..2a56f390 100644 --- a/blueprints/odoo_18/template.toml +++ b/blueprints/odoo_18/template.toml @@ -3,9 +3,17 @@ main_domain = "${domain}" [config] env = {} -mounts = [] [[config.domains]] serviceName = "web" port = 8_069 host = "${main_domain}" + +[[config.mounts]] +filePath = "config/odoo.conf" +content = """ +[options] +addons_path = /mnt/extra-addons +data_dir = /var/lib/odoo +proxy_mode = True +"""