2023-10-26 08:02:51 +00:00
|
|
|
# documentation: https://docs.mattermost.com
|
|
|
|
|
# slogan: Mattermost is an open source, self-hosted Slack-alternative.
|
2025-08-17 16:23:57 +00:00
|
|
|
# category: mattermost
|
2023-10-26 08:02:51 +00:00
|
|
|
# tags: mattermost,slack,alternative
|
2024-08-16 13:26:42 +00:00
|
|
|
# logo: svgs/mattermost.svg
|
2024-08-16 11:42:42 +00:00
|
|
|
# port: 8065
|
2023-10-26 08:02:51 +00:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
mattermost:
|
2024-10-08 14:24:16 +00:00
|
|
|
image: mattermost/mattermost-team-edition:release-10
|
|
|
|
|
platform: linux/amd64
|
2023-10-26 08:02:51 +00:00
|
|
|
volumes:
|
2024-11-08 13:56:51 +00:00
|
|
|
- 'mattermost-data-config:/mattermost/config:rw'
|
|
|
|
|
- 'mattermost-data-data:/mattermost/data:rw'
|
|
|
|
|
- 'mattermost-data-logs:/mattermost/logs:rw'
|
|
|
|
|
- 'mattermost-data-plugins:/mattermost/plugins:rw'
|
|
|
|
|
- 'mattermost-data-client-plugins:/mattermost/client/plugins:rw'
|
|
|
|
|
- 'mattermost-data-bleve-indexes:/mattermost/bleve-indexes:rw'
|
2023-10-26 08:02:51 +00:00
|
|
|
environment:
|
2025-08-10 08:10:22 +00:00
|
|
|
- SERVICE_URL_MATTERMOST_8065
|
|
|
|
|
- MM_SERVICESETTINGS_SITEURL=${SERVICE_URL_MATTERMOST}
|
2023-10-26 08:02:51 +00:00
|
|
|
- TZ=${TZ:-UTC}
|
|
|
|
|
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
|
|
|
|
- MM_SQLSETTINGS_DATASOURCE=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgres:5432/$POSTGRES_DB?sslmode=disable&connect_timeout=10
|
|
|
|
|
- MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes
|
|
|
|
|
depends_on:
|
2024-10-08 14:24:16 +00:00
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:8065"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 20s
|
|
|
|
|
retries: 10
|
|
|
|
|
|
2023-10-26 08:02:51 +00:00
|
|
|
postgres:
|
2023-11-30 11:21:21 +00:00
|
|
|
image: postgres:16-alpine
|
2023-10-26 08:02:51 +00:00
|
|
|
volumes:
|
|
|
|
|
- postgresql-data:/var/lib/postgresql/data
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
|
|
|
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB:-mattermost}
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 20s
|
|
|
|
|
retries: 10
|