Add docker-compose occ example

This commit is contained in:
Tilo Spannagel 2017-07-01 12:35:54 +02:00
parent ed37831b89
commit f48779a075
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
1 changed files with 14 additions and 0 deletions

View File

@ -80,6 +80,20 @@ $ docker run -d nextcloud \
-v theme:/var/www/html/themes/<YOUR_CUSTOM_THEME> -v theme:/var/www/html/themes/<YOUR_CUSTOM_THEME>
``` ```
## Using the Nextcloud command-line interface
To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/12/admin_manual/configuration_server/occ_command.html) (aka. `occ` command):
```console
$ docker exec --user www-data CONTAINER_ID php occ
```
or for docker-compose:
```console
$ docker-compose exec --user www-data app php occ
```
# Running this image with docker-compose # 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. 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.