mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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>
30 lines
515 B
YAML
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
|