Compare commits
39 Commits
Author | SHA1 | Date | |
---|---|---|---|
f58c9a2aab | |||
18cf2d21cc | |||
fc31939b5e | |||
b1427c9a1e | |||
2e177985f8 | |||
8e63b9839d | |||
c83e59cfc5 | |||
142cd05e01 | |||
be6939d39b | |||
1bbc0bc5e3 | |||
91136d15a7 | |||
bf7466f8b2 | |||
33466a38cf | |||
4c6dca85fa | |||
2e366449bf | |||
a5ba7e60e7 | |||
fdd0610784 | |||
de797a654a | |||
e42bc0f2a5 | |||
5a30d2d99b | |||
98ef1ca228 | |||
16f489fd8d | |||
12d0f85607 | |||
123af69e49 | |||
bb5df287e8 | |||
c274319f6f | |||
9d83d0bed0 | |||
177a96d597 | |||
e6ff612b8a | |||
0d67e8ccf7 | |||
8f9f308af2 | |||
f4311c4879 | |||
9a716f7303 | |||
7df9f350d5 | |||
24b45a21c8 | |||
ccd12e92aa | |||
d29e4dfafa | |||
7756ca38cb | |||
4b27d3993f |
31
.drone.yml
31
.drone.yml
@ -3,10 +3,12 @@ kind: pipeline
|
|||||||
name: deploy to swarm-test.autonomic.zone
|
name: deploy to swarm-test.autonomic.zone
|
||||||
steps:
|
steps:
|
||||||
- name: deployment
|
- name: deployment
|
||||||
image: decentral1se/stack-ssh-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
host: swarm-test.autonomic.zone
|
host: swarm-test.autonomic.zone
|
||||||
stack: mattermost
|
stack: mattermost
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
purge: true
|
purge: true
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_swarm_test
|
from_secret: drone_ssh_swarm_test
|
||||||
@ -24,33 +26,26 @@ steps:
|
|||||||
from_secret: autono_bot_access_token
|
from_secret: autono_bot_access_token
|
||||||
depends_on:
|
depends_on:
|
||||||
- deployment
|
- deployment
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: recipe release
|
name: generate recipe catalogue
|
||||||
steps:
|
steps:
|
||||||
- name: release a new version
|
- name: release a new version
|
||||||
image: decentral1se/drone-abra:latest
|
|
||||||
settings:
|
|
||||||
command: recipe mattermost release
|
|
||||||
deploy_key:
|
|
||||||
from_secret: abra_bot_deploy_key
|
|
||||||
|
|
||||||
- name: trigger downstream builds
|
|
||||||
image: plugins/downstream
|
image: plugins/downstream
|
||||||
settings:
|
settings:
|
||||||
server: https://drone.autonomic.zone
|
server: https://build.coopcloud.tech
|
||||||
token:
|
token:
|
||||||
from_secret: decentral1se_token
|
from_secret: drone_abra-bot_token
|
||||||
fork: true
|
fork: true
|
||||||
repositories:
|
repositories:
|
||||||
- coop-cloud/auto-apps-json
|
- toolshed/auto-recipes-catalogue-json
|
||||||
depends_on:
|
|
||||||
- release a new version
|
trigger:
|
||||||
on
|
event: tag
|
||||||
|
12
.env.sample
12
.env.sample
@ -14,15 +14,3 @@ SECRET_POSTGRES_PASSWORD_VERSION=v1
|
|||||||
## A list of these tz database names can be looked up at Wikipedia
|
## A list of these tz database names can be looked up at Wikipedia
|
||||||
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||||
TZ=UTC
|
TZ=UTC
|
||||||
|
|
||||||
## Make Mattermost container readonly. This interferes with the regeneration of root.html inside the container. Only use
|
|
||||||
## it if you know what you're doing.
|
|
||||||
## See https://github.com/mattermost/docker/issues/18
|
|
||||||
MATTERMOST_CONTAINER_READONLY=false
|
|
||||||
|
|
||||||
## Additional configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at
|
|
||||||
## https://docs.mattermost.com/administration/config-settings.html
|
|
||||||
## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes
|
|
||||||
## the system console as well and settings set with env variables will be greyed out.
|
|
||||||
|
|
||||||
|
|
||||||
|
16
README.md
16
README.md
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
|
|
||||||
* **Category**:
|
* **Category**: Apps
|
||||||
* **Status**:
|
* **Status**: 3
|
||||||
* **Image**:
|
* **Image**: [`mattermost/mattermost-team-edition`](https://hub.docker.com/r/mattermost/mattermost-team-edition), 4, upstream
|
||||||
* **Healthcheck**: N
|
* **Healthcheck**: No
|
||||||
* **Backups**: N
|
* **Backups**: Yes
|
||||||
* **Email**:
|
* **Email**: 1
|
||||||
* **Tests**: N
|
* **Tests**: 2
|
||||||
* **SSO**: N
|
* **SSO**: No
|
||||||
|
|
||||||
<!-- endmetadata -->
|
<!-- endmetadata -->
|
||||||
|
|
||||||
|
73
compose.yml
73
compose.yml
@ -1,50 +1,19 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
|
||||||
image: postgres:13-alpine
|
|
||||||
security_opt:
|
|
||||||
- no-new-privileges:true
|
|
||||||
tmpfs:
|
|
||||||
- /tmp
|
|
||||||
- /var/run/postgresql
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
# timezone inside container
|
|
||||||
- TZ
|
|
||||||
|
|
||||||
# necessary Postgres options/variables
|
|
||||||
- POSTGRES_USER=mattermost
|
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
|
||||||
- POSTGRES_DB=mattermost
|
|
||||||
secrets:
|
|
||||||
- postgres_password
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: mattermost/mattermost-team-edition:5.39
|
image: mattermost/mattermost-team-edition:9.11.8
|
||||||
security_opt:
|
environment:
|
||||||
- no-new-privileges:true
|
- TZ
|
||||||
read_only: ${MATTERMOST_CONTAINER_READONLY}
|
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
||||||
tmpfs:
|
- MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}
|
||||||
- /tmp
|
|
||||||
volumes:
|
volumes:
|
||||||
- mattermost_config:/mattermost/config:rw
|
- mattermost_config:/mattermost/config:rw
|
||||||
- mattermost_data:/mattermost/data:rw
|
- mattermost_data:/mattermost/data:rw
|
||||||
- mattermost_logs:/mattermost/logs:rw
|
- mattermost_logs:/mattermost/logs:rw
|
||||||
- mattermost_plugins:/mattermost/plugins:rw
|
- mattermost_plugins:/mattermost/plugins:rw
|
||||||
- mattermost_client_plugins:/mattermost/client/plugins:rw
|
- mattermost_client_plugins:/mattermost/client/plugins:rw
|
||||||
environment:
|
- mattermost_certs:/etc/ssl/certs:ro
|
||||||
# timezone inside container
|
|
||||||
- TZ
|
|
||||||
|
|
||||||
# necessary Mattermost options/variables (see env.sample)
|
|
||||||
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
|
||||||
|
|
||||||
# additional settings
|
|
||||||
- MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- internal
|
||||||
@ -59,6 +28,9 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
|
- "coop-cloud.${STACK_NAME}.version=1.5.3+9.11.8"
|
||||||
|
- "backupbot.backup=true"
|
||||||
|
- "backupbot.backup.path=/mattermost,/etc/ssl"
|
||||||
configs:
|
configs:
|
||||||
- source: abra_mattermost_entrypoint
|
- source: abra_mattermost_entrypoint
|
||||||
target: /abra-mattermost-entrypoint.sh
|
target: /abra-mattermost-entrypoint.sh
|
||||||
@ -67,6 +39,27 @@ services:
|
|||||||
- postgres_password
|
- postgres_password
|
||||||
entrypoint: /abra-mattermost-entrypoint.sh
|
entrypoint: /abra-mattermost-entrypoint.sh
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:15-alpine
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- TZ
|
||||||
|
- POSTGRES_USER=mattermost
|
||||||
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||||
|
- POSTGRES_DB=mattermost
|
||||||
|
secrets:
|
||||||
|
- postgres_password
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
backupbot.backup: "true"
|
||||||
|
backupbot.backup.pre-hook: "PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /var/lib/postgresql/data/postgres-backup.sql"
|
||||||
|
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/postgres-backup.sql"
|
||||||
|
backupbot.backup.path: "/var/lib/postgresql/data/"
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
postgres_password:
|
postgres_password:
|
||||||
external: true
|
external: true
|
||||||
@ -74,8 +67,8 @@ secrets:
|
|||||||
|
|
||||||
configs:
|
configs:
|
||||||
abra_mattermost_entrypoint:
|
abra_mattermost_entrypoint:
|
||||||
name: abra_mattermost_entrypoint
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
||||||
file: ./abra-mattermost-entrypoint.sh
|
file: ./entrypoint.sh
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
@ -85,8 +78,8 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
mattermost_config:
|
mattermost_config:
|
||||||
|
mattermost_certs:
|
||||||
mattermost_data:
|
mattermost_data:
|
||||||
mattermost_logs:
|
mattermost_logs:
|
||||||
mattermost_plugins:
|
mattermost_plugins:
|
||||||
mattermost_client_plugins:
|
mattermost_client_plugins:
|
||||||
|
|
||||||
|
6
release/0.1.0+7.0.txt
Normal file
6
release/0.1.0+7.0.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
This should be a fairly stable update. The only strange behaviour we've noticed so far has been:
|
||||||
|
|
||||||
|
- When clicking on 'Channels' to change to 'Boards' or 'Playbooks', your window may flicker and just reload 'Channels'. Click 'Boards' or 'Playbooks' again and it should behave as expected.
|
||||||
|
- When clicking on private messages, you may get an error telling you that you don't have permission to view these.
|
||||||
|
|
||||||
|
To fix both of these errors, logout of your server in your Mattermost client, delete the server (if you are using an app), and then re-add it. We haven't noticed any issues after doing this.
|
1
release/1.4.1+9.5.11
Normal file
1
release/1.4.1+9.5.11
Normal file
@ -0,0 +1 @@
|
|||||||
|
hotfix: rollback to last functional version
|
Reference in New Issue
Block a user