mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-15 15:54:47 +02:00
Added /var/www/html to the fine grained volume approach
Also added a line on upgrading.
This commit is contained in:
parent
0c02c82327
commit
eef2752f8c
1 changed files with 9 additions and 7 deletions
14
README.md
14
README.md
|
@ -49,7 +49,6 @@ To make your data persistant to upgrading and get access for backups is using na
|
||||||
|
|
||||||
Nextcloud:
|
Nextcloud:
|
||||||
- `/var/www/html/` folder where all nextcloud data lives
|
- `/var/www/html/` folder where all nextcloud data lives
|
||||||
example:
|
|
||||||
```console
|
```console
|
||||||
$ docker run -d nextcloud \
|
$ docker run -d nextcloud \
|
||||||
-v nextcloud:/var/www/html
|
-v nextcloud:/var/www/html
|
||||||
|
@ -58,16 +57,17 @@ $ docker run -d nextcloud \
|
||||||
Database:
|
Database:
|
||||||
- `/var/lib/mysql` MySQL / MariaDB Data
|
- `/var/lib/mysql` MySQL / MariaDB Data
|
||||||
- `/var/lib/postresql/data` PostegreSQL Data
|
- `/var/lib/postresql/data` PostegreSQL Data
|
||||||
example:
|
|
||||||
```console
|
```console
|
||||||
$ docker run -d mariadb \
|
$ docker run -d mariadb \
|
||||||
-v db:/var/lib/mysql
|
-v db:/var/lib/mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to get fine grained access to your data and just mount the individual files you have to take care of data, config, your theme, custom apps.
|
If you want to get fine grained access to your individual files, you can mount additional volumes for data, config, your theme and custom apps.
|
||||||
The `data`, `config` are stored in respective subfolders inside `/var/www/html/`. The apps are split into core `apps` (wich are shipped with nextcloud and you don't need to take care of) and a `custom_apps` folder. If you use a custom theme it would go into the `themes` subfolder.
|
The `data`, `config` are stored in respective subfolders inside `/var/www/html/`. The apps are split into core `apps` (wich are shipped with nextcloud and you don't need to take care of) and a `custom_apps` folder. If you use a custom theme it would go into the `themes` subfolder.
|
||||||
Overview of the folders:
|
|
||||||
|
|
||||||
|
Overview of the folders that can be mounted as volumes:
|
||||||
|
|
||||||
|
- `/var/www/html` Main folder, needed for updating
|
||||||
- `/var/www/html/custom_apps` installed / modified apps
|
- `/var/www/html/custom_apps` installed / modified apps
|
||||||
- `/var/www/html/config` local configuration
|
- `/var/www/html/config` local configuration
|
||||||
- `/var/www/html/data` the actual data of your Nextcloud
|
- `/var/www/html/data` the actual data of your Nextcloud
|
||||||
|
@ -76,6 +76,7 @@ Overview of the folders:
|
||||||
If you want to use named volumes for all of these it would look like this
|
If you want to use named volumes for all of these it would look like this
|
||||||
```console
|
```console
|
||||||
$ docker run -d nextcloud \
|
$ docker run -d nextcloud \
|
||||||
|
-v nextcloud:/var/www/html \
|
||||||
-v apps:/var/www/html/custom_apps \
|
-v apps:/var/www/html/custom_apps \
|
||||||
-v config:/var/www/html/config \
|
-v config:/var/www/html/config \
|
||||||
-v data:/var/www/html/data \
|
-v data:/var/www/html/data \
|
||||||
|
@ -187,10 +188,11 @@ When the new container starts it detects the mismatch between the installed vers
|
||||||
$ docker pull nextcloud
|
$ docker pull nextcloud
|
||||||
$ docker stop <your_nextcloud_container>
|
$ docker stop <your_nextcloud_container>
|
||||||
$ docker rm <your_nextcloud_container>
|
$ docker rm <your_nextcloud_container>
|
||||||
$ docker run -d nextcloud
|
$ docker run <OPTIONS> -d nextcloud
|
||||||
```
|
```
|
||||||
|
Beware that you have to run the same command with the options that you used to initially start your nextcloud. That includes volumes, port mapping.
|
||||||
|
|
||||||
When using docker-compose:
|
When using docker-compose your compose file takes care of your configuration, so you just have to run:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker-compose pull
|
$ docker-compose pull
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue