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.

60 lines
1.8 KiB

  1. docker-image: git.panda-chi.io:5002/panda-chi/docker-odoo-pandachi:11.0-all-module-test
  2. data-resources:
  3. - /var/lib/odoo
  4. # config-resources:
  5. # ## XXXvlab: should this be there or declared dynamically in the relation that
  6. # ## create/update this file ?
  7. # # - /etc/odoo-server.conf
  8. docker-compose:
  9. command:
  10. - odoo
  11. - --config=/opt/odoo/auto/odoo.conf
  12. ## YYYvlab: useful ?
  13. tty: true
  14. environment:
  15. INITIAL_LANG: fr_FR
  16. restart: unless-stopped
  17. uses:
  18. postgres-database:
  19. #constraint: required | recommended | optional
  20. #auto: pair | summon | none ## default: pair
  21. constraint: required
  22. auto: summon
  23. solves:
  24. database: "main storage"
  25. #default-options:
  26. log-rotate:
  27. #constraint: required | recommended | optional
  28. #auto: pair | summon | none ## default: pair
  29. constraint: recommended
  30. auto: pair
  31. solves:
  32. unmanaged-logs: "in docker logs"
  33. #default-options:
  34. web-proxy:
  35. #constraint: required | recommended | optional
  36. #auto: pair | summon | none ## default: pair
  37. constraint: recommended
  38. auto: pair
  39. solves:
  40. proxy: "Public access"
  41. default-options:
  42. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8069
  43. apache-custom-rules:
  44. - !bash-stdout |
  45. workers=$(relation-base-compose-get workers 2>/dev/null)
  46. workers=${workers:-1}
  47. if [ "$workers" -gt 1 ]; then
  48. echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  49. echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  50. fi
  51. # network-isolation:
  52. # whitelist: ## required external services used by this service
  53. # - www.google.com
  54. # - www.gravatar.com
  55. # - fonts.gstatic.com
  56. # - fonts.googleapis.com
  57. # - cdnjs.cloudflare.com