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 <noreply@anthropic.com>
This commit is contained in:
Mauricio Siu
2026-08-30 16:45:14 -06:00
committed by GitHub
co-authored by Claude Fable 5
parent c784f9b9c8
commit 614e4fef12
2 changed files with 18 additions and 2 deletions
+9 -1
View File
@@ -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
"""
+9 -1
View File
@@ -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
"""