From f36ffdd3eefc0f3d815a04783ddd26646aa635d7 Mon Sep 17 00:00:00 2001 From: Joel Louzado Date: Mon, 13 Feb 2017 09:37:40 +0530 Subject: [PATCH] edited 'update docker' section as per @xet7's comments --- Install-and-Update.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Install-and-Update.md b/Install-and-Update.md index bf46635..39ccc6a 100644 --- a/Install-and-Update.md +++ b/Install-and-Update.md @@ -257,19 +257,33 @@ Checkout instructions for setup with [[Caddy Webserver Config]] and [[Nginx Webs If you installed Wekan via Docker, you'll have one Docker container for the database and one container for the application. You'll need to stop the old application container, replace it by the new one and start it again. +If you have newer Mongo version, you need to backup your MongoDB data (as shown here: [[Export Mongo Data|Export-Docker-Mongo-Data]]) and use similar commands as below to replace your Mongo container with version 3.2.11, and then restore data. + See running containers: ```sh docker ps ``` + To stop the running containers: ```sh -docker stop wekan_wekan_1 wekan_wekandb_1 +docker stop CONTAINER-ID-HERE ``` -Login as the `wekan` user (`su - wekan`), which uses the docker-compose.yml file. To create and start the new container run: +Remove the container: ```sh -docker-compose up -d +docker rm CONTAINER-ID-HERE ``` + +Replace with the latest image: +```sh +docker rm mquandalle/wekan:latest +``` + +Run latest version: +```sh +docker run -d --restart=always --name wekan --link "wekan-db:db" -e "MONGO_URL=mongodb://db" -e "ROOT_URL=http://localhost:8080" -p 8080:80 mquandalle/wekan:latest +``` + More information about [setup Wekan Docker](https://github.com/wekan/wekan/wiki/Install-Wekan-Docker-in-production). ## Updating Sandstorm