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. - /var/log/odoo
  5. # config-resources:
  6. # ## XXXvlab: should this be there or declared dynamically in the relation that
  7. # ## create/update this file ?
  8. # # - /etc/odoo-server.conf
  9. docker-compose:
  10. command:
  11. - odoo
  12. - --config=/opt/odoo/auto/odoo.conf
  13. - --logfile=/var/log/odoo/odoo.log
  14. ## YYYvlab: useful ?
  15. tty: true
  16. environment:
  17. INITIAL_LANG: fr_FR
  18. restart: unless-stopped
  19. uses:
  20. postgres-database:
  21. #constraint: required | recommended | optional
  22. #auto: pair | summon | none ## default: pair
  23. constraint: required
  24. auto: pair
  25. solves:
  26. database: "main storage"
  27. #default-options:
  28. log-rotate:
  29. #constraint: required | recommended | optional
  30. #auto: pair | summon | none ## default: pair
  31. constraint: recommended
  32. auto: pair
  33. solves:
  34. disk-leak: "/var/log/odoo"
  35. #default-options:
  36. web-proxy:
  37. #constraint: required | recommended | optional
  38. #auto: pair | summon | none ## default: pair
  39. constraint: recommended
  40. auto: pair
  41. solves:
  42. proxy: "Public access"
  43. default-options:
  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