0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-16 16:14:47 +02:00

Note about not placing files inside /var/www/html

Existing files inside /var/www/html get deleted by the upgrade script. This update documents that. (#1165)

Signed-off-by: Zhang Maiyun <myzhang1029@hotmail.com>
This commit is contained in:
Zhang Maiyun 2020-06-28 20:12:02 +08:00
parent c135f7ef60
commit ff9e503de3
No known key found for this signature in database
GPG key ID: D19AD4DB9397EC57

View file

@ -92,6 +92,8 @@ $ docker run -d \
nextcloud nextcloud
``` ```
Please note that anything inside `/var/www/html` will be removed by the installation script, except for `config`, `data`, `custom_apps`, `themes` and `version.php`. So make sure you do not leave other important files inside.
## Using the Nextcloud command-line interface ## Using the Nextcloud command-line interface
To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html) (aka. `occ` command): To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html) (aka. `occ` command):
```console ```console
@ -479,6 +481,10 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
```php ```php
'datadirectory' => '/var/www/html/data', 'datadirectory' => '/var/www/html/data',
``` ```
5. Make sure your Nextcloud lives at the web root. Look for lines like
```php
'overwrite.cli.url' => 'https://localhost/nextcloud',
```
4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container): 4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container):