Deploy Mattermost on Ubuntu with Docker — an open-source, self-hosted team messaging platform built as a privacy-respecting alternative to Slack. Channels, direct messages, file sharing, and integrations, entirely on your own infrastructure.
Grab the automated bash script from GitHub to follow along with the video.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/communication/mattermost/mattermost-ubuntu.sh
chmod +x mattermost-ubuntu.sh
sudo bash mattermost-ubuntu.sh
The script installs Docker, starts the Mattermost stack with a PostgreSQL database, and configures persistent storage for your team's data.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/communication/mattermost/mattermost-ubuntu.sh
chmod +x mattermost-ubuntu.sh
sudo bash mattermost-ubuntu.sh
Open your browser and navigate to Mattermost. On first visit, you will be taken through the setup wizard to create your admin account:
http://<your-server-ip>:8065
After login, create your first team and give it a name. A team is a shared workspace where your colleagues communicate. You can create multiple teams for different departments or projects.
Go to the main menu → Invite People to generate an invitation link or send email invitations. Members can also be added directly via the System Console under User Management. Install the desktop or mobile Mattermost apps for the best experience.
| Port | Purpose |
|---|---|
| 8065 | Mattermost Web & API |