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.

40 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. data-resources:
  7. - /mattermost/data
  8. - /mattermost/logs
  9. - /mattermost/config
  10. - /mattermost/plugins
  11. host-resources:
  12. - /etc/localtime:ro
  13. uses:
  14. postgres-database:
  15. constraint: required
  16. auto: summon
  17. solves:
  18. database: "main storage"
  19. log-rotate:
  20. constraint: recommended
  21. auto: pair
  22. solves:
  23. disk-leak: "/mattermost/logs"
  24. web-proxy:
  25. constraint: recommended
  26. auto: pair
  27. solves:
  28. proxy: "Public access"
  29. default-options:
  30. apache-custom-rules:
  31. - !var-expand |
  32. ProxyPreserveHost On
  33. # Set web sockets
  34. RewriteEngine On
  35. RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
  36. RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
  37. RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  38. RewriteRule .* ws://${MASTER_BASE_SERVICE_NAME}:8065%{REQUEST_URI} [P,QSA,L]