TL;DR — Quick Summary

Deploy Mattermost for self-hosted team messaging. Channels, threads, file sharing, integrations, and plugins. Open-source Slack alternative with Docker deployment.

Mattermost — Self-Hosted Slack

services:
  mattermost:
    image: mattermost/mattermost-team-edition:latest
    container_name: mattermost
    restart: always
    ports:
      - "8065:8065"
    environment:
      - MM_SQLSETTINGS_DRIVERNAME=postgres
      - MM_SQLSETTINGS_DATASOURCE=postgres://mattermost:mattermost@db:5432/mattermost?sslmode=disable
    depends_on:
      - db
    volumes:
      - mattermost-data:/mattermost/data

  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: mattermost
      POSTGRES_USER: mattermost
      POSTGRES_PASSWORD: mattermost
    volumes:
      - mattermost-db:/var/lib/postgresql/data

volumes:
  mattermost-data:
  mattermost-db:

Features

FeatureDescription
ChannelsPublic, private, and group channels
ThreadsOrganized threaded conversations
File sharingDrag-and-drop files, images, code
CallsVoice and video calls (plugin)
IntegrationsWebhooks, bots, Jira, GitHub, GitLab
PluginsMarketplace with 100+ plugins
MobileiOS and Android apps
SSOLDAP, SAML, OAuth