From a4f177fa6d93738611a029a600527b934db30cfb Mon Sep 17 00:00:00 2001 From: dy0gu Date: Tue, 8 Apr 2025 00:23:58 +0100 Subject: [PATCH 1/5] chore: bump mattermost version --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 42ffa8a..5eb5f3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: postgres: condition: service_healthy restart: true - image: mattermost/mattermost-team-edition:10.5.1 + image: mattermost/mattermost-team-edition:10.6.1 pull_policy: if_not_present container_name: chat-web restart: unless-stopped From cf12a186722171ff0b12d4b56a3e5ba0879abcc4 Mon Sep 17 00:00:00 2001 From: dy0gu Date: Tue, 8 Apr 2025 00:29:25 +0100 Subject: [PATCH 2/5] chore: update used plugins --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ebe5a7..546bcf1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ This repository contains a _Docker Compose_ configuration to run a self-hosted i ## Requirements 📋 -- Docker Engine 25.0.0+ - Docker Compose 2.24.0+ ## Usage 🚀 @@ -31,6 +30,8 @@ In our setup we tend to use a group of plugins that are essencial to get the mos - [mattermost-plugin-boards](https://github.com/mattermost/mattermost-plugin-boards) - This plugin adds a new section to Mattermost that allows users to create and manage boards, lists, and cards views of their tasks, all synced to an in-app calendar page, which essentially removes the need for project management tools external to Mattermost in the team's workflow. **See additional info at the end of this section.** +- [mattermost-plugin-playbooks](https://github.com/mattermost/mattermost-plugin-playbooks) - This plugin adds a new section to Mattermost that allows users to create and manage playbooks, which are essentially templates for recurring tasks or processes. This is useful when there are a lot of repetitive tasks or processes that need to be followed, as it allows these workflows to be standardized, ensuring that everyone is on the same page. Playbooks can be used to create checklists, assign tasks, and track progress. + - [mattermost-plugin-github](https://github.com/mattermost/mattermost-plugin-github) - This plugin adds GitHub integration to Mattermost, we use it to create a channel that keeps track and logs all activity on our repostories, like pull requests, issues, and comments. - [mattermost-plugin-freemium](https://github.com/dy0gu/mattermost-plugin-freemium) - This plugin removes and cleans up some of the native branding the free Team Edition of the Mattermost platform has, like the _Get more features_ button and the _Upgrade to Enterprise_ banner. From 34596775fc3aee6afeeb20bcee105ae6f6ca16e5 Mon Sep 17 00:00:00 2001 From: dy0gu Date: Sun, 18 May 2025 01:32:43 +0100 Subject: [PATCH 3/5] chore: update deploy env defaults --- .env.example | 18 ------------ docker-compose.yml | 69 +++++++++++++++++++++++++++++----------------- 2 files changed, 44 insertions(+), 43 deletions(-) diff --git a/.env.example b/.env.example index 99ff2d8..703346c 100644 --- a/.env.example +++ b/.env.example @@ -21,33 +21,15 @@ MM_SQLSETTINGS_DATASOURCE=postgres://${DB_USER}:${DB_PASSWORD}@postgres:5432/${D ## https://docs.mattermost.com/administration/config-settings.html ## Settings set with env variables will be greyed out in the admin system console MM_SERVICESETTINGS_SITEURL=https://${DOMAIN} -MM_TEAMSETTINGS_SITENAME="NEI/AAC" -MM_TEAMSETTINGS_CUSTOMDESCRIPTIONTEXT="Welcome to the team chat!" -MM_TEAMSETTINGS_ENABLECUSTOMBRAND=true -MM_SUPPORTSETTINGS_HELPLINK="" MM_SUPPORTSETTINGS_PRIVACYPOLICYLINK="https://privacy.neiaac.com" MM_SUPPORTSETTINGS_ABOUTLINK="https://neiaac.com" MM_SUPPORTSETTINGS_REPORTAPROBLEMLINK="https://github.com/NEIAAC/chat/issues" -MM_SERVICESETTINGS_ENABLEDESKTOPLANDINGPAGE=false -MM_PLUGINSETTINGS_ENABLEUPLOADS=true -MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS=false -MM_BLEVESETTINGS_ENABLEINDEXING=false -MM_BLEVESETTINGS_INDEXDIR="" -MM_BLEVESETTINGS_ENABLESEARCHING=false -MM_BLEVESETTINGS_ENABLEAUTOCOMPLETE=false -MM_TEAMSETTINGS_ENABLEJOINLEAVEMESSAGEBYDEFAULT=false -MM_TEAMSETTINGS_TEAMMATENAMEDISPLAY="nickname_full_name" MM_EMAILSETTINGS_SMTPSERVER=email-smtp.eu-north-1.amazonaws.com MM_EMAILSETTINGS_SMTPPORT=587 MM_EMAILSETTINGS_ENABLESMTPAUTH=true MM_EMAILSETTINGS_SMTPUSERNAME=username-smtp MM_EMAILSETTINGS_SMTPPASSWORD=password-smtp MM_EMAILSETTINGS_CONNECTIONSECURITY=STARTTLS -MM_EMAILSETTINGS_SKIPSERVERCERTIFICATEVERIFICATION=false MM_EMAILSETTINGS_FEEDBACKNAME="no-reply" MM_EMAILSETTINGS_FEEDBACKEMAIL="no-reply@neiaac.com" MM_SUPPORTSETTINGS_SUPPORTEMAIL="desenvolvimento@neiaac.com" -MM_FILESETTINGS_DRIVERNAME="local" -MM_FILESETTINGS_DIRECTORY="./data/" -MM_METRICSSETTINGS_ENABLENOTIFICATIONMETRICS=false -MM_LOGSETTINGS_ENABLEDIAGNOSTICS=false diff --git a/docker-compose.yml b/docker-compose.yml index 5eb5f3f..50e7782 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,36 +1,11 @@ name: chat services: - mattermost: - depends_on: - postgres: - condition: service_healthy - restart: true - image: mattermost/mattermost-team-edition:10.6.1 - pull_policy: if_not_present - container_name: chat-web - restart: unless-stopped - ports: - - ${APP_PORT}:8065 - security_opt: - - no-new-privileges:true - volumes: - - config:/mattermost/config - - data:/mattermost/data - - logs:/mattermost/logs - - plugins:/mattermost/plugins - - client:/mattermost/client/plugins - - indexes:/mattermost/bleve-indexes - env_file: - - .env - postgres: image: postgres:13-alpine pull_policy: if_not_present container_name: chat-db restart: unless-stopped - security_opt: - - no-new-privileges:true volumes: - database:/var/lib/postgresql/data environment: @@ -42,6 +17,50 @@ services: interval: 2s timeout: 5s retries: 10 + mattermost: + image: mattermost/mattermost-team-edition:10.6.1 + pull_policy: if_not_present + container_name: chat-web + restart: unless-stopped + # has built in healthcheck so no need to specify one + depends_on: + postgres: + condition: service_healthy + restart: true + env_file: + - .env + ports: + - ${APP_PORT}:8065 + environment: + - MM_TEAMSETTINGS_SITENAME=NEI/AAC + - MM_TEAMSETTINGS_CUSTOMDESCRIPTIONTEXT="Welcome to the team chat!"" + - MM_TEAMSETTINGS_ENABLECUSTOMBRAND=true + - MM_SUPPORTSETTINGS_HELPLINK="" + - MM_SERVICESETTINGS_ENABLEDESKTOPLANDINGPAGE=false + - MM_PLUGINSETTINGS_ENABLEUPLOADS=true + - MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS=false + - MM_BLEVESETTINGS_ENABLEINDEXING=false + - MM_BLEVESETTINGS_INDEXDIR="" + - MM_BLEVESETTINGS_ENABLESEARCHING=false + - MM_BLEVESETTINGS_ENABLEAUTOCOMPLETE=false + - MM_TEAMSETTINGS_ENABLEJOINLEAVEMESSAGEBYDEFAULT=false + - MM_TEAMSETTINGS_TEAMMATENAMEDISPLAY=nickname_full_name + - MM_EMAILSETTINGS_SKIPSERVERCERTIFICATEVERIFICATION=false + - MM_FILESETTINGS_DRIVERNAME=local + - MM_FILESETTINGS_DIRECTORY=./data/ + - MM_METRICSSETTINGS_ENABLENOTIFICATIONMETRICS=false + - MM_LOGSETTINGS_ENABLEDIAGNOSTICS=false + - MM_SERVICESETTINGS_ENABLEINCOMINGWEBHOOKS=true + - MM_SERVICESETTINGS_ENABLEPOSTUSERNAMEOVERRIDE=true + volumes: + - config:/mattermost/config + - data:/mattermost/data + - logs:/mattermost/logs + - plugins:/mattermost/plugins + - client:/mattermost/client/plugins + - indexes:/mattermost/bleve-indexes + + volumes: database: From e51298318e71200c56ad6fc2fc06aae5e69a75f5 Mon Sep 17 00:00:00 2001 From: dy0gu Date: Sun, 18 May 2025 01:41:48 +0100 Subject: [PATCH 4/5] fix: update typos in hard coded vars --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50e7782..976bd93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,14 +33,14 @@ services: - ${APP_PORT}:8065 environment: - MM_TEAMSETTINGS_SITENAME=NEI/AAC - - MM_TEAMSETTINGS_CUSTOMDESCRIPTIONTEXT="Welcome to the team chat!"" + - MM_TEAMSETTINGS_CUSTOMDESCRIPTIONTEXT=Welcome to the team chat! - MM_TEAMSETTINGS_ENABLECUSTOMBRAND=true - - MM_SUPPORTSETTINGS_HELPLINK="" + - MM_SUPPORTSETTINGS_HELPLINK= - MM_SERVICESETTINGS_ENABLEDESKTOPLANDINGPAGE=false - MM_PLUGINSETTINGS_ENABLEUPLOADS=true - MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS=false - MM_BLEVESETTINGS_ENABLEINDEXING=false - - MM_BLEVESETTINGS_INDEXDIR="" + - MM_BLEVESETTINGS_INDEXDIR= - MM_BLEVESETTINGS_ENABLESEARCHING=false - MM_BLEVESETTINGS_ENABLEAUTOCOMPLETE=false - MM_TEAMSETTINGS_ENABLEJOINLEAVEMESSAGEBYDEFAULT=false From 120c59b49861a3fb0c891fed0f2835fadfb18208 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 May 2025 01:46:30 +0100 Subject: [PATCH 5/5] chore(main): release 1.2.1 (#4) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cacbb6..76819ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.2.1](https://github.com/NEIAAC/chat/compare/v1.2.0...v1.2.1) (2025-05-18) + + +### Bug Fixes + +* update typos in hard coded vars ([e512983](https://github.com/NEIAAC/chat/commit/e51298318e71200c56ad6fc2fc06aae5e69a75f5)) + ## [1.2.0](https://github.com/NEIAAC/chat/compare/v1.1.0...v1.2.0) (2025-02-26)