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.

39 lines
1.2 KiB

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