diff --git a/.gitignore b/.gitignore index 882fbf7..343d029 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ license.mattermost - +license.txt ## Ignoring keycloak so it can be pulled already setup. volumes diff --git a/Makefile b/Makefile index 83e1562..2a81542 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,15 @@ reset: @make delete-data @make start +downgrade: + @echo "Downgrading Mattermost..." + @docker stop cs-repro-mattermost || true && docker rm cs-repro-mattermost || true + @docker stop cs-repro-postgres || true && docker rm cs-repro-postgres || true + rm -rf ./volumes/mattermost + rm -rf ./volumes/db + docker-compose up -d + @make setup-mattermost + delete-dockerfiles: @echo "Deleting data..." @docker-compose rm diff --git a/README.md b/README.md index e0b1d8b..0e18286 100644 --- a/README.md +++ b/README.md @@ -71,3 +71,35 @@ Destroys everything (Except your life). | leela | leela | User | Member | Yes | Yes | | zoidberg | zoidberg | User | Member | Yes | Yes | | amy | amy | User | Member | Yes | Yes | + +# Guides + +## How to upgrade + +1. Modify the line in the `docker-compose.yml` file to be the version you want + + You're just replacing the tag at the end, ths one is `7.7` for example. It must be a version of Mattermost that exists on Docker. + + ``` + mattermost/mattermost-enterprise-edition:release-7.7 + ``` +2. Run `make restart-mattermost` + This will bounce the Mattermost container only. + +## How to upgrade + +Doing this will wipe anything you have in the database and any existing Mattermost config. If you desire to manually downgrade, follow the upgrade steps but in reverse. Note you might have some issues with the patch config and such. + +1. Modify the line in the `docker-compose.yml` file to be the version you want + + You're just replacing the tag at the end, ths one is `7.7` for example. It must be a version of Mattermost that exists on Docker. + + ``` + mattermost/mattermost-enterprise-edition:release-7.7 + ``` + +2. Run `make downgrade` + This will: + - delete the database + - Restart the database container + - Restart the Mattermost container \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 52f3d4c..75a32df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,7 +63,7 @@ services: depends_on: postgres: condition: service_healthy - image: mattermost/mattermost-enterprise-edition:release-7.7 + image: mattermost/mattermost-enterprise-edition:release-7.8 restart: unless-stopped security_opt: - no-new-privileges:true