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.

59 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. uses:
  17. postgres-database:
  18. #constraint: required | recommended | optional
  19. #auto: pair | summon | none ## default: pair
  20. constraint: required
  21. auto: summon
  22. solves:
  23. database: "main storage"
  24. #default-options:
  25. log-rotate:
  26. #constraint: required | recommended | optional
  27. #auto: pair | summon | none ## default: pair
  28. constraint: recommended
  29. auto: pair
  30. solves:
  31. unmanaged-logs: "in docker logs"
  32. #default-options:
  33. web-proxy:
  34. #constraint: required | recommended | optional
  35. #auto: pair | summon | none ## default: pair
  36. constraint: recommended
  37. auto: pair
  38. solves:
  39. proxy: "Public access"
  40. default-options:
  41. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8069
  42. apache-custom-rules:
  43. - !bash-stdout |
  44. workers=$(relation-base-compose-get workers 2>/dev/null)
  45. workers=${workers:-1}
  46. if [ "$workers" -gt 1 ]; then
  47. echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  48. echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  49. fi
  50. # network-isolation:
  51. # whitelist: ## required external services used by this service
  52. # - www.google.com
  53. # - www.gravatar.com
  54. # - fonts.gstatic.com
  55. # - fonts.googleapis.com
  56. # - cdnjs.cloudflare.com