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.

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