mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 21:00:53 +02:00
clarified use of variable
This commit is contained in:
parent
b25e1abe9c
commit
f062435135
2 changed files with 15 additions and 2 deletions
15
README.md
15
README.md
|
@ -123,7 +123,7 @@ If you want you can set the data directory and table prefix, otherwise default v
|
|||
- `NEXTCLOUD_TABLE_PREFIX` (default: _""_) Optional prefix for the tables. Used to be `oc_` in the past
|
||||
|
||||
|
||||
The auto 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 can reenable the install / update with
|
||||
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_)
|
||||
|
||||
|
@ -279,6 +279,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