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

  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: summon
  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. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:8069
  45. apache-custom-rules:
  46. - !bash-stdout |
  47. workers=$(relation-base-compose-get workers 2>/dev/null)
  48. workers=${workers:-1}
  49. if [ "$workers" -gt 1 ]; then
  50. echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  51. echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
  52. fi
  53. # network-isolation:
  54. # whitelist: ## required external services used by this service
  55. # - www.google.com
  56. # - www.gravatar.com
  57. # - fonts.gstatic.com
  58. # - fonts.googleapis.com
  59. # - cdnjs.cloudflare.com