41 lines
1.1 KiB

description: "Mattermost"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
## We fix image here to be sure of what we install
docker-image: docker.0k.io/mattermost-team:5.15.0
# docker-image: docker.0k.io/mattermost-enterprise
config-resources:
- /mattermost/config
- /mattermost/plugins
data-resources:
- /mattermost/data
- /mattermost/logs
host-resources:
- /etc/localtime:ro
uses:
postgres-database:
constraint: required
auto: summon
solves:
database: "main storage"
log-rotate:
constraint: recommended
auto: pair
solves:
disk-leak: "/mattermost/logs"
web-proxy:
constraint: recommended
auto: pair
solves:
proxy: "Public access"
default-options:
apache-custom-rules:
- !var-expand |
ProxyPreserveHost On
# Set web sockets
RewriteEngine On
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://${MASTER_BASE_SERVICE_NAME}:8000%{REQUEST_URI} [P,QSA,L]