Repository containing some slight customisations to the team
edition of Mattermost for running on OpenShift.
- Create a db for the application using the template provided or one built into OpenShift.
oc new-app \
-e POSTGRESQL_USER=mattermost \
-e POSTGRESQL_PASSWORD=password \
-e POSTGRESQL_DATABASE=mattermost \
postgresql:9.4
- Create a config map from the template provided by substituting the variables below with your own. Instructions for getting GitLab setup can be found here mattermost-gitlab.
oc process -f mattermost-config.yml \
-p SITE_URL=http://mattermost.somesite.com \
-p SMTP_PASSWORD=password \
-p [email protected] \
-p GITLAB_OATUH_SECRET=123 \
-p GITLAB_OAUTH_ID=123 \
-p GITLAB_URL=gitlab.somesite.com \
-p POSTGRESQL_PASSWORD=password \
-p POSTGRESQL_SERVICE=postgresql.namespace.svc.cluster.local \
| oc create -f -
- Create a deployment for the mattermost app
oc process -f mattermost.yml | oc create -f -
- Create template for the Postgres db
- Create a config map for the
config.json
- Add smtp settings
- Add LDAP settings for single auth