-
Notifications
You must be signed in to change notification settings - Fork 9
/
mattermost.yaml
46 lines (39 loc) · 1.56 KB
/
mattermost.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
type: install
name: Mattermost
id: mattermost
categories: ["apps/dev-and-admin-tools", "apps/popular"]
displayName: Mattermost
homepage: https://github.com/HidoraSwiss/mattermost
logo: https://github.com/HidoraSwiss/mattermost/raw/master/mattermost.png
description: Mattermost is an open-source, self-hostable online chat service with file sharing, search, and integrations. It is designed as an internal chat for organisations and companies, and mostly markets itself as an open-source alternative to Slack.
ssl: true
globals:
PG_PASSWORD: ${fn.password(10)}
nodes:
- image: mattermost/mattermost-prod-app
count: 1
cloudlets: 16
nodeGroup: cp
skipNodeEmails: true
diskLimit: 50G
- nodeType: postgresql
nodeGroup: sqldb
count: 1
cloudlets: 16
skipNodeEmails: true
diskLimit: 20G
onInstall:
- log: configuration Password PG
- cmd[sqldb]:
- jem passwd set -p "${globals.PG_PASSWORD}"
- export PGPASSWORD='${globals.PG_PASSWORD}'; psql -U webadmin -d postgres -c "CREATE DATABASE mattermost;"
user: root
- cmd[cp]:
- sed -i "s/mmuser\:mostest/postgres\:\/\/webadmin\:${globals.PG_PASSWORD}/g" /mattermost/config/config.json
- sed -i "s/tcp(localhost\:3306)\/mattermost_test/\sqldb\:5432\/mattermost/g" /mattermost/config/config.json
- sed -i "s/charset\=utf8mb4\,utf8\&readTimeout\=30s\&writeTimeout\=30s/sslmode\=disable\&connect_timeout\=10/g" /mattermost/config/config.json
- restartContainers:
- nodeGroup: cp
success: |
## Mattermost is ready
**URL** : [https://${env.domain}](https://${env.domain})