Skip to content

Instantly share code, notes, and snippets.

@icelander
Created March 21, 2022 17:29
Show Gist options
  • Save icelander/bb5d87a8359f7c978ad5639c3e314637 to your computer and use it in GitHub Desktop.
Save icelander/bb5d87a8359f7c978ad5639c3e314637 to your computer and use it in GitHub Desktop.
Example Mattermost docker-compose file
version: '3.7'
volumes:
mmst_data:
mmst_logs:
mmst_config:
mmst_plugins:
mmst_client:
networks:
mattermost:
services:
mattermost:
container_name: mattermost
# Change 6.5.0 to another version and run docker-compose up -d to upgrade
# You can also use release-6.5 to and the `watchtower` container to get
# bugfixes and security updates
image: mattermost/mattermost-enterprise-edition:6.5.0
ports:
- 8065:8065 # This is the port for the HTTP server
- 8067:8067 # This is for monitoring the server with Prometheus
volumes:
- mmst_data:/mattermost/data
- mmst_logs:/mattermost/logs
- mmst_config:/mattermost/config
- mmst_plugins:/mattermost/plugins
- mmst_client:/mattermost/client/plugins
environment:
# These are required to upload the Mattermost Voice Chat plugin
MM_PLUGINSETTINGS_ENABLE: "true"
MM_PLUGINSETTINGS_ENABLEUPLOADS: "true"
# Configuration settings set with environment variables cannot be changed
# from the System Console and you must restart with docker-compose up -d
# to change them
#
# MM_SERVICESETTINGS_SITEURL: "http://chat.example.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment