From ee108bd190bbf9bb59542a0a92492181557a63d2 Mon Sep 17 00:00:00 2001 From: Francesco Antognazza Date: Thu, 26 Sep 2024 11:23:33 +0200 Subject: [PATCH] Downgrade MM to release 9 as subpath (URL prefix) are not entirely supported in release 10 --- containers/mattermost/tasks.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/containers/mattermost/tasks.yml b/containers/mattermost/tasks.yml index a8ff0e0..6dfb6ba 100644 --- a/containers/mattermost/tasks.yml +++ b/containers/mattermost/tasks.yml @@ -48,7 +48,7 @@ containers.podman.podman_image: name: docker.io/{{ item }} loop: - - mattermost/mattermost-team-edition:release-10 + - mattermost/mattermost-team-edition:release-9 - postgres:13-alpine - name: Create postgres instance @@ -86,7 +86,7 @@ become: true containers.podman.podman_container: name: mattermost - image: docker.io/mattermost/mattermost-team-edition:release-10 + image: docker.io/mattermost/mattermost-team-edition:release-9 state: present network: - traefik-mattermost @@ -120,10 +120,18 @@ traefik.docker.network: "traefik-mattermost" env: TZ: "{{ vault_timezone }}" + # https://docs.mattermost.com/configure/environment-configuration-settings.html MM_SQLSETTINGS_DRIVERNAME: "postgres" MM_SQLSETTINGS_DATASOURCE: "postgres://{{ vault_mattermost_db_user }}:{{ vault_mattermost_db_password }}@db_mattermost:5432/{{ vault_mattermost_db_database }}?sslmode=disable&connect_timeout=10" MM_BLEVESETTINGS_INDEXDIR: "/mattermost/bleve-indexes" - MM_SERVICESETTINGS_SITEURL: https://{{ vault_domain }}/mattermost + MM_SERVICESETTINGS_SITEURL: "https://{{ vault_domain }}/mattermost" + MM_EMAILSETTINGS_SMTPSERVER: "{{ vault_smtp_host }}" + MM_EMAILSETTINGS_SMTPPORT: "{{ vault_smtp_port }}" + MM_EMAILSETTINGS_ENABLESMTPAUTH: "true" + MM_EMAILSETTINGS_SMTPUSERNAME: "{{ vault_smtp_user }}" + MM_EMAILSETTINGS_SMTPPASSWORD: "{{ vault_smtp_password }}" + MM_EMAILSETTINGS_CONNECTIONSECURITY: "{{ vault_smtp_protocol }}" + MM_SERVICESETTINGS_ENABLESECURITYFIXALERT: "true" generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure