Production Docker Deployment

Deploy Mattermost using a multi-node production configuration using Docker Compose. Docker Compose experience recommended.

For a single-node preview of Mattermost (without email) see Local Machine Setup using Docker.

If you have any problems installing, see the troubleshooting guide. To submit an improvement or correction, click Edit at the top of this page.

Production Docker Setup on Ubuntu

  1. Install Docker Compose using the Ubuntu online guide or these instructions:

    sudo apt-get update
    sudo apt-get install wget
    wget -qO- https://get.docker.com/ | sh
    sudo usermod -aG docker <username>
    sudo service docker start
    newgrp docker
    
  2. Deploy the Mattermost Production Docker setup by running:

    git clone https://github.com/mattermost/mattermost-docker.git
    cd mattermost-docker
    docker-compose build
    docker-compose up -d
    
  3. Configure TLS by following the instructions

  4. Configure Email by following the SMTP email setup guide

  5. (Optional) to enable enterprise features under System Console > Edition and License upload your trial license or subscription license file received via email.

  6. Configure your server based on configuration settings documentation

Additional Guides:

Production Docker Setup on Arch Linux

To install on Arch Linux, see the installation guide on the Arch Linux wiki.

Production Docker Setup on Mac OS X

You can run a production deployment on Mac OS X by installing Docker Compose using the online guide then following the above instructions.

Other options:

To install Mattermost Team Edition instead of Mattermost Enterprise Edition, open docker-compose.yaml and comment out the following line:

dockerfile: Dockerfile-enterprise