- Quickstarts
- Mattermost
Deploy Mattermost
Mattermost is an open source messaging platform with an easy-to-use and familiar web interface. It is customizable and can run as a simple standalone web server or as a complex, clustered, multi-process service connected to separate database, object storage, LDAP directory, search engine, and mail service, among other things. All of these configurations can be installed on Render.
In this tutorial, you’ll run a Mattermost instance consisting of a Mattermost web service, a PostgreSQL database, and a MinIO object store backed by a persistent, snapshotted disk. Alternatively, if you just want Mattermost up and running, follow the one-click deploy steps.
One-Click Deploy
Click Deploy to Render below and follow the prompts to set up Mattermost on Render.
Manual Deploy
We’ll be using github.com/render-examples/mattermost, so start by forking that repository.
Create the Database
Create a new PostgreSQL database on Render.
You’ll need various properties from this database when you’re creating the Mattermost service.
Create the MinIO Service
-
Go here to begin creating a new private service.
-
Use the forked Mattermost repository.
-
Add these two environment variables:
Key Value MINIO_ACCESS_KEYSupply your own value or generate it MINIO_SECRET_KEYSupply your own value or generate it These values will be needed for the Mattermost service later.
-
Add a disk with
/dataas the mount path. -
Set the Docker build context directory to
./minioand the Dockerfile path to./minio/Dockerfile. -
Create the service.
Create the Mattermost Service
-
Go here to begin creating a new web service.
-
Use the forked Mattermost repository.
-
Add the following environment variables:
Key Value MM_SQLSETTINGS_DRIVERNAMEpostgresMM_USERNAMEThe username from the database created earlier MM_PASSWORDThe password from the database created earlier MM_DBNAMEThe database name from the database created earlier DB_HOSTThe hostname from the database created earlier MM_FILESETTINGS_DRIVERNAMEamazons3MM_FILESETTINGS_AMAZONS3BUCKETmattermostMM_FILESETTINGS_AMAZONS3ACCESSKEYIDThe MINIO_ACCESS_KEYfrom MinIO created earlierMM_FILESETTINGS_AMAZONS3SECRETACCESSKEYThe MINIO_SECRET_KEYfrom MinIO created earlierMM_FILESETTINGS_AMAZONS3ENDPOINTThe host:portfrom the MinIO created earlierMM_FILESETTINGS_AMAZONS3SSLfalse -
Add a disk with
/mattermost/configas the mount path. -
Set the Docker build context directory to
./appand the Dockerfile path to./app/Dockerfile. -
Create the service.
Your Mattermost cluster should be ready to use with regular backups and disk snapshots!