mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
add example for mount order for nginx work
This commit is contained in:
parent
9547740db1
commit
90c2c28bd2
1 changed files with 15 additions and 0 deletions
|
@ -13,6 +13,11 @@ services:
|
||||||
image: nextcloud:fpm
|
image: nextcloud:fpm
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
|
- nextcloud-data:/var/www/html/data
|
||||||
|
- nextcloud-config:/var/www/html/config
|
||||||
|
- nextcloud-apps:/var/www/html/custom_apps
|
||||||
|
- nextcloud-theme:/var/www/themes/mytheme
|
||||||
|
# full html dir must be last in mount order
|
||||||
- nextcloud:/var/www/html
|
- nextcloud:/var/www/html
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST=db
|
- POSTGRES_HOST=db
|
||||||
|
@ -27,6 +32,12 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
volumes:
|
volumes:
|
||||||
|
# volumes must copy-past volume section from app with readonly
|
||||||
|
- nextcloud-data:/var/www/html/data:ro
|
||||||
|
- nextcloud-config:/var/www/html/config:ro
|
||||||
|
- nextcloud-apps:/var/www/html/custom_apps:ro
|
||||||
|
- nextcloud-theme:/var/www/themes/mytheme:ro
|
||||||
|
# full html dir must be last in mount order
|
||||||
- nextcloud:/var/www/html:ro
|
- nextcloud:/var/www/html:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
|
@ -34,3 +45,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
nextcloud:
|
nextcloud:
|
||||||
|
nextcloud-data:
|
||||||
|
nextcloud-config:
|
||||||
|
nextcloud-apps:
|
||||||
|
nextcloud-theme:
|
||||||
|
|
Loading…
Add table
Reference in a new issue