How to deploy Mattermost on Ubuntu 18.04

Mattermost is an enterprise grade, instant messaging platform, an open source self-hosted Slack alternative. It’s written in Golang and React and can use MySQL or PostgreSQL as a database backend. In this tutorial, we will install Mattermost on an Ubuntu 18.04 server and configure Nginx as an SSL reverse proxy.