From 5f26f842c32ee385da58769994a29b9760dfc779 Mon Sep 17 00:00:00 2001 From: Daniel Helgenberger Date: Fri, 26 Jul 2019 13:19:41 +0200 Subject: [PATCH] Fixes #810: Clarify docker-compose upgrade Adds a better working procedure for upgrades. Mention DB migration using docker-compose. Signed-off-by: Daniel Helgenberger --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 22a61007..906bb20d 100644 --- a/README.md +++ b/README.md @@ -284,9 +284,15 @@ When using docker-compose your compose file takes care of your configuration, so ```console $ docker-compose pull +$ docker-compose build $ docker-compose up -d ``` +After the container is started up, run the database migrations: + +```console +$ docker-compose exec --user www-data app php occ db:add-missing-indices +``` # Adding Features A lot of people want to use additional functionality inside their Nextcloud installation. If the image does not include the packages you need, you can easily build your own image on top of it. @@ -336,12 +342,11 @@ docker run -d your-name or for docker-compose: ```console -docker-compose build --pull +docker-compose pull +docker-compose build docker-compose up -d ``` -The `--pull` option tells docker to look for new versions of the base image. Then the build instructions inside your `Dockerfile` are run on top of the new image. - # Migrating an existing installation You're already using Nextcloud and want to switch to docker? Great! Here are some things to look out for: