mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-11 13:38:07 -06:00
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:
co-authored by
Claude Fable 5
parent
c784f9b9c8
commit
614e4fef12
@@ -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
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user