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.

38 lines
1.1 KiB

  1. summary: "Rocket Chat server"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. docker-image: docker.0k.io/rocketchat:2.4.9
  4. data-resources:
  5. - /app/uploads
  6. uses:
  7. mongo-database:
  8. #constraint: required | recommended | optional
  9. #auto: pair | summon | none ## default: pair
  10. constraint: required
  11. auto: summon
  12. solves:
  13. database: "main storage"
  14. web-proxy:
  15. #constraint: required | recommended | optional
  16. #auto: pair | summon | none ## default: pair
  17. constraint: recommended
  18. auto: pair
  19. solves:
  20. proxy: "Public access"
  21. default-options:
  22. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:3000
  23. apache-custom-rules:
  24. - !var-expand |
  25. ProxyPreserveHost On
  26. # Set web sockets
  27. RewriteEngine On
  28. RewriteCond %{REQUEST_URI} /(.*)/websocket [NC,OR]
  29. RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
  30. RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  31. RewriteRule .* ws://${MASTER_BASE_SERVICE_NAME}:3000%{REQUEST_URI} [P,QSA,L]
  32. backup:
  33. constraint: recommended
  34. auto: pair
  35. solves:
  36. backup: "Automatic regular backup"