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.

42 lines
1.1 KiB

  1. description: "Mattermost"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. ## We fix image here to be sure of what we install
  4. docker-image: docker.0k.io/mattermost-team:5.30.1
  5. # docker-image: docker.0k.io/mattermost-enterprise
  6. config-resources:
  7. - /mattermost/config
  8. - /mattermost/plugins
  9. - /mattermost/client-plugins
  10. data-resources:
  11. - /mattermost/data
  12. - /mattermost/logs
  13. host-resources:
  14. - /etc/localtime:ro
  15. uses:
  16. postgres-database:
  17. constraint: required
  18. auto: summon
  19. solves:
  20. database: "main storage"
  21. log-rotate:
  22. constraint: recommended
  23. auto: pair
  24. solves:
  25. disk-leak: "/mattermost/logs"
  26. web-proxy:
  27. constraint: recommended
  28. auto: pair
  29. solves:
  30. proxy: "Public access"
  31. default-options:
  32. apache-custom-rules:
  33. - !var-expand |
  34. ProxyPreserveHost On
  35. # Set web sockets
  36. RewriteEngine On
  37. RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
  38. RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
  39. RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  40. RewriteRule .* ws://${MASTER_BASE_SERVICE_NAME}:8000%{REQUEST_URI} [P,QSA,L]