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.

62 lines
1.8 KiB

  1. docker-image: git.panda-chi.io:5002/panda-chi/docker-odoo-pandachi:12.0
  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. LIST_DB: 'true'
  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. extensions:
  27. - unaccent
  28. log-rotate:
  29. #constraint: required | recommended | optional
  30. #auto: pair | summon | none ## default: pair
  31. constraint: recommended
  32. auto: pair
  33. solves:
  34. unmanaged-logs: "in docker logs"
  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