summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-10-16 18:30:39 +0200
committerGitHub <noreply@github.com>2018-10-16 18:30:39 +0200
commit424364e2e10a9d6e1a31e6659e2149aac1f1c772 (patch)
treec714ffd0b61f0c3c2d84be2ea6be3b63dbca0041 /README.md
parent3838458843b9115179791f693e7afa65d6e22eed (diff)
parentb3df4606be6ad9f7114dfbbd0ae094a0d49872eb (diff)
Merge pull request #515 from SnowMB/add_update_variable
Add NEXTCLOUD_UPDATE for containers started with non-default commands
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8640fabb..0d712c01 100644
--- a/README.md
+++ b/README.md
@@ -126,6 +126,12 @@ One or more trusted domains can be set by environemnt variable, too. They will b
- `NEXTCLOUD_TRUSTED_DOMAINS` (not set by default) Optional space-separated list of domains
+The install and update script is only triggered when a default command is used (`apache-foreground` or `php-fpm`). If you use a custom command you have to enable the install / update with
+
+- `NEXTCLOUD_UPDATE` (default: _0_)
+
+
+
# Running this image with docker-compose
The easiest way to get a fully featured and functional setup is using a `docker-compose` file. There are too many different possibilities to setup your system, so here are only some examples what you have to look for.
@@ -276,6 +282,19 @@ If you use your own Dockerfile you need to configure your docker-compose file ac
restart: always
```
+If you intend to use another command to run the image. Make sure that you set `NEXTCLOUD_UPDATE=1` in your Dockerfile. Otherwise the installation and update will not work.
+
+```yaml
+FROM nextcloud:apache
+
+...
+
+ENV NEXTCLOUD_UPDATE=1
+
+CMD ["/usr/bin/supervisord"]
+```
+
+
**Updating** your own derived image is also very simple. When a new version of the Nextcloud image is available run:
```console