Update README.md (#166)

* Improve update documentation
This commit is contained in:
Jason Blais 2017-08-24 15:45:05 -04:00 committed by Kyâne Pichou
parent ee170666ec
commit 19f0bd8302

View File

@ -76,39 +76,49 @@ Put your SSL certificate as `./volumes/web/cert/cert.pem` and the private key th
no password as `./volumes/web/cert/key-no-password.pem`. If you don't have no password as `./volumes/web/cert/key-no-password.pem`. If you don't have
them you may generate a self-signed SSL certificate. them you may generate a self-signed SSL certificate.
## Starting/Stopping ### Starting/Stopping Docker
### Start #### Start
``` ```
docker-compose start docker-compose start
``` ```
### Stop #### Stop
``` ```
docker-compose stop docker-compose stop
``` ```
### Update ### Removing Docker
#### Remove the containers
```
docker-compose stop && docker-compose rm
```
#### Remove the data and settings of your Mattermost instance
```
sudo rm -rf volumes
```
## Update Mattermost to latest version
First, shutdown your containers to back up your data.
Make sure to backup Mattermost data before proceeding.
``` ```
docker-compose down docker-compose down
```
Back up your mounted volumes to save your data. If you use the default `docker-compose.yml` file proposed on this repository, your data is on `./volumes/` folder.
Then run the following commands.
```
git pull git pull
docker-compose build docker-compose build
docker-compose up -d docker-compose up -d
``` ```
## Removing Your Docker image should now be on the latest Mattermost version.
### Remove the containers
```
docker-compose stop && docker-compose rm
```
### Remove the data and settings of your Mattermost instance
```
sudo rm -rf volumes
```
## Upgrading to Team Edition 3.0.x from 2.x ## Upgrading to Team Edition 3.0.x from 2.x