Files
computer-playbook/roles/web-app-odoo/meta/volumes.yml
kevinveenbirkenbachandClaude Opus 4.8 4c09314262 fix(web-app-odoo): bake custom addons into the image
The manager-local /mnt/custom-addons host bind was rejected on swarm workers. Bake files/addons into the odoo image so every node has it, and relax the config mount mode for the non-root odoo user.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 14:28:41 +02:00

30 lines
515 B
YAML

---
data:
type: volume
name: odoo_data
mounts:
- service: odoo
target: /var/lib/odoo
addons:
type: volume
name: odoo_addons
mounts:
- service: odoo
target: /mnt/extra-addons
config:
type: volume
name: odoo_config
mounts:
- service: odoo
target: /etc/odoo
odoo_conf:
type: config
source: "{{ [lookup('container', 'web-app-odoo', 'directories.volumes'), 'odoo.conf'] | path_join }}"
mode: "0444"
mounts:
- service: odoo
target: /etc/odoo/odoo.conf