You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

62 lines
1.8 KiB

docker-image: git.panda-chi.io:5002/panda-chi/docker-odoo-pandachi:11.0-all-module-test
data-resources:
- /var/lib/odoo
- /var/log/odoo
# config-resources:
# ## XXXvlab: should this be there or declared dynamically in the relation that
# ## create/update this file ?
# # - /etc/odoo-server.conf
docker-compose:
command:
- odoo
- --config=/opt/odoo/auto/odoo.conf
- --logfile=/var/log/odoo/odoo.log
## YYYvlab: useful ?
tty: true
environment:
INITIAL_LANG: fr_FR
restart: unless-stopped
uses:
postgres-database:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: required
auto: summon
solves:
database: "main storage"
#default-options:
log-rotate:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: recommended
auto: pair
solves:
disk-leak: "/var/log/odoo"
#default-options:
web-proxy:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: recommended
auto: pair
solves:
proxy: "Public access"
default-options:
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8069
apache-custom-rules:
- !bash-stdout |
workers=$(relation-base-compose-get workers 2>/dev/null)
workers=${workers:-1}
if [ "$workers" -gt 1 ]; then
echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
fi
# network-isolation:
# whitelist: ## required external services used by this service
# - www.google.com
# - www.gravatar.com
# - fonts.gstatic.com
# - fonts.googleapis.com
# - cdnjs.cloudflare.com