0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-09-30 00:12:36 +02:00

Compare commits

...

2 commits

Author SHA1 Message Date
Daniel Helgenberger
d86e957114
Merge 5f26f842c3 into 0ffd24170f 2024-09-18 16:58:40 +02:00
Daniel Helgenberger
5f26f842c3
Fixes #810: Clarify docker-compose upgrade
Adds a better working procedure for upgrades. Mention DB migration using docker-compose.

Signed-off-by: Daniel Helgenberger <daniel.helgenberger@m-box.de>
2019-07-26 13:31:47 +02:00

View file

@ -482,9 +482,15 @@ When using docker-compose your compose file takes care of your configuration, so
```console ```console
$ docker-compose pull $ docker-compose pull
$ docker-compose build
$ docker-compose up -d $ 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 # 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. Start your derived image with the `FROM` statement and add whatever you like. 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. Start your derived image with the `FROM` statement and add whatever you like.
@ -533,12 +539,11 @@ docker run -d your-name
or for docker-compose: or for docker-compose:
```console ```console
docker-compose build --pull docker-compose pull
docker-compose build
docker-compose up -d 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 # Migrating an existing installation
You're already using Nextcloud and want to switch to docker? Great! Here are some things to look out for: You're already using Nextcloud and want to switch to docker? Great! Here are some things to look out for: