fork 0k-charms
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.

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