mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 21:00:53 +02:00
Merge pull request #515 from SnowMB/add_update_variable
Add NEXTCLOUD_UPDATE for containers started with non-default commands
This commit is contained in:
commit
424364e2e1
15 changed files with 34 additions and 12 deletions
19
README.md
19
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue