From 99915c56ce3c57bb1759e7f06d2d1c4622f0d345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20COMBEAU?= Date: Wed, 13 Oct 2021 10:47:29 +0200 Subject: [PATCH] Update README.md about update process --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7ad036f..f66ea1e 100644 --- a/README.md +++ b/README.md @@ -104,16 +104,20 @@ sudo docker-compose -f docker-compose.yml -f docker-compose.without-nginx.yml up ``` # Update Mattermost to the latest version -To update Mattermost to the latest version in this repo run the below commands. This will download a new image of the instance and update Mattermost. +To update Mattermost to the latest version in this repo run the below commands. -``` +1. Shutdown your Mattermost instance +```bash ## Based on what you followed in step 6 sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml down # OR sudo docker-compose -f docker-compose.yml -f docker-compose.without-nginx.yml down - -git pull ## alternatively you can change the docker tag yourself as described below - +``` +2. Run a `git pull` to get all the latest diff from the repository +3. Edit your `.env` file by copying and adjusting based on the `env.example` file +4. Adjust the variable `MATTERMOST_IMAGE_TAG` in `.env` file to point the desired Mattermost version (You can find a list of the Mattermost version tags here: [enterprise-edition](https://hub.docker.com/r/mattermost/mattermost-enterprise-edition/tags?page=1&ordering=last_updated) / [team-edition](https://hub.docker.com/r/mattermost/mattermost-team-edition/tags?page=1&ordering=last_updated).) +5. Restart your Mattermost instance +```bash sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml up -d ## OR sudo docker-compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d