Skip to content

Commit 8d2fef5

Browse files
committed
fix mattermost
1 parent a979beb commit 8d2fef5

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

templates/compose/mattermost.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ignore: true
21
# documentation: https://docs.mattermost.com
32
# slogan: Mattermost is an open source, self-hosted Slack-alternative.
43
# tags: mattermost,slack,alternative
@@ -7,18 +6,26 @@
76

87
services:
98
mattermost:
10-
image: mattermost/mattermost-team-edition:release-9
9+
image: mattermost/mattermost-team-edition:release-10
10+
platform: linux/amd64
1111
volumes:
1212
- mattermost-data:/mattermost
1313
environment:
14-
- SERVICE_FQDN_MATTERMOST
14+
- SERVICE_FQDN_MATTERMOST_8065
15+
- MM_SERVICESETTINGS_SITEURL=${SERVICE_FQDN_MATTERMOST}
1516
- TZ=${TZ:-UTC}
1617
- MM_SQLSETTINGS_DRIVERNAME=postgres
1718
- MM_SQLSETTINGS_DATASOURCE=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgres:5432/$POSTGRES_DB?sslmode=disable&connect_timeout=10
1819
- MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes
19-
- MM_SERVICESETTINGS_SITEURL=$SERVICE_FQDN_MATTERMOST
2020
depends_on:
21-
- postgres
21+
postgres:
22+
condition: service_healthy
23+
healthcheck:
24+
test: ["CMD", "curl", "-f", "http://127.0.0.1:8065"]
25+
interval: 5s
26+
timeout: 20s
27+
retries: 10
28+
2229
postgres:
2330
image: postgres:16-alpine
2431
volumes:

0 commit comments

Comments
 (0)