💬 Setup Mattermost — Self-Hosted Team Messaging

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.

⚠️ This script is provided for demo and testing purposes only. Not intended for production use.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along with the video.

Automated install script — Mattermost team platform in one command.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/communication/mattermost/mattermost-ubuntu.sh
chmod +x mattermost-ubuntu.sh
sudo bash mattermost-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

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

2 Create Your Admin Account

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

3 Create a Team

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.

4 Invite Team Members

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.

Ports Used

PortPurpose
8065Mattermost Web & API