2023-10-26 08:02:51 +00:00
|
|
|
# ignore: true
|
|
|
|
# documentation: https://docs.mattermost.com
|
|
|
|
# slogan: Mattermost is an open source, self-hosted Slack-alternative.
|
|
|
|
# tags: mattermost,slack,alternative
|
|
|
|
|
|
|
|
services:
|
|
|
|
mattermost:
|
|
|
|
image: mattermost/mattermost-team-edition:9.1
|
|
|
|
volumes:
|
|
|
|
- mattermost-data:/mattermost
|
|
|
|
environment:
|
|
|
|
- SERVICE_FQDN_MATTERMOST
|
|
|
|
- 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
|
|
|
|
- MM_SERVICESETTINGS_SITEURL=$SERVICE_FQDN_MATTERMOST
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
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
|