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.

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