Compare commits

...

7 Commits

Author SHA1 Message Date
966c6d615e fix(backup): gzip backup, add restore hook, bump to 2.1.12
All checks were successful
cc-ci/testme cc-ci: success
2026-06-12 04:10:50 +00:00
a333e31a60 chore: upgrade to 2.1.11+10.11.19
All checks were successful
cc-ci/testme cc-ci: success
2026-06-05 04:21:34 +00:00
9ddfd04412 chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
2026-06-05 03:33:46 +00:00
c2acdd074c chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
2026-06-05 03:24:45 +00:00
5dd708cbfb fix(pg-backup): use pg_hba.conf gate for safer restore (matrix-synapse pattern)
Some checks failed
cc-ci/testme cc-ci: failure
2026-06-02 05:04:21 +00:00
4f0ca56c3a fix(backup): add pg_backup.sh restore hook (restore was a no-op)
Some checks failed
cc-ci/testme cc-ci: failure
2026-06-02 04:53:44 +00:00
cc4f9ca71f chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
2026-06-02 04:40:23 +00:00

View File

@ -2,7 +2,7 @@ version: "3.8"
services:
app:
image: mattermost/mattermost-team-edition:10.11.18
image: mattermost/mattermost-team-edition:10.11.19
environment:
- TZ
- MM_SQLSETTINGS_DRIVERNAME=postgres
@ -28,7 +28,7 @@ services:
- "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.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=2.1.10+10.11.18"
- "coop-cloud.${STACK_NAME}.version=2.1.12+10.11.19"
- "backupbot.backup=true"
- "backupbot.backup.path=/mattermost,/etc/ssl"
configs:
@ -58,9 +58,9 @@ services:
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/"
backupbot.backup.pre-hook: "PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE:-/run/secrets/postgres_password}) pg_dump -U $${POSTGRES_USER:-mattermost} $${POSTGRES_DB:-mattermost} | gzip > /var/lib/postgresql/data/backup.sql"
backupbot.backup.volumes.postgres_data.path: "backup.sql"
backupbot.restore.post-hook: "DB=$${POSTGRES_DB:-mattermost}; U=$${POSTGRES_USER:-mattermost}; export PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE:-/run/secrets/postgres_password}); psql -U $$U -d postgres -c \"SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='$$DB' AND pid<>pg_backend_pid();\"; psql -U $$U -d postgres -c \"DROP DATABASE \\\"$$DB\\\" WITH (FORCE);\"; createdb -U $$U $$DB; gunzip -c /var/lib/postgresql/data/backup.sql | psql -U $$U -d $$DB -1 -v ON_ERROR_STOP=1 -f -"
secrets: