Self-host Mattermost
updated Jul 2026deployed & timed by usprices checked · Aug 2026Install verified on Ubuntu 26.04 · Jul 2026 · how we test
A polished, Slack-style team chat you fully own — channels, threads, DMs, integrations, and a solid mobile app. The go-to self-hosted Slack replacement for teams that want their messages on their own server.
Slack / yr$96
Self-hosted / yr~$55
You keep$41/yr
Pocket the difference — spin it up on a cheap VPS in minutes.Start free on Kamatera → (opens in new tab)
Key facts
CategoryTeam chat
LicenseAGPL-3.0
StackGo, React, PostgreSQL
Min RAM2048 MB
Dockeryes
Difficulty
What you need
- Any VPS with at least 2048 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About an afternoon — budget time for troubleshooting
Install
Run these commands on your server:
# Mattermost — official compose (app + PostgreSQL)
git clone https://github.com/mattermost/docker mattermost
cd mattermost
cp env.example .env
# edit .env and set DOMAIN to your hostname, then:
docker compose up -d # → http://SERVER_IP:8065An alternative to
Head-to-head
More self-hosted tools
Team chat
Rocket.Chat
Node.jsMongoDB
moderateRead guide →
File sync & storage
Syncthing
Go
easyRead guide →
VPN & Mesh Networking
Headscale
Go
moderateRead guide →
ERP
Odoo
PythonPostgreSQLJavaScript
moderateRead guide →