From e582399c920054003a30a8c0dc645b5a8c0d001a Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sun, 24 Dec 2023 13:56:03 +0800 Subject: [PATCH] fix mattermost --- apps/mattermost/.env | 2 +- apps/mattermost/docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mattermost/.env b/apps/mattermost/.env index 49a7ba650..c77aba0b3 100644 --- a/apps/mattermost/.env +++ b/apps/mattermost/.env @@ -17,5 +17,5 @@ W9_NETWORK=websoft9 # -- below from official .env MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes MM_SQLSETTINGS_DRIVERNAME=postgres -MM_SQLSETTINGS_DATASOURCE=postgres://postgres:${W9_POWER_PASSWORD}@$W9_ID-postgresql:5432/${W9_ID}?sslmode=disable&connect_timeout=10 +MM_SQLSETTINGS_DATASOURCE=postgres://$W9_ID:${W9_POWER_PASSWORD}@postgres:5432/${W9_ID}-postgresql?sslmode=disable&connect_timeout=10 MM_SERVICESETTINGS_SITEURL=http://${W9_URL} \ No newline at end of file diff --git a/apps/mattermost/docker-compose.yml b/apps/mattermost/docker-compose.yml index f61aa1641..64b424a22 100644 --- a/apps/mattermost/docker-compose.yml +++ b/apps/mattermost/docker-compose.yml @@ -43,6 +43,7 @@ services: - TZ - POSTGRES_PASSWORD:$W9_POWER_PASSWORD - POSTGRES_DB:$W9_ID + - POSTGRES_USER: $W9_ID networks: default: