0
0
Fork 0
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:
Alexey Lustin 2018-07-15 14:43:02 +03:00
parent 9547740db1
commit 90c2c28bd2
No known key found for this signature in database
GPG key ID: E053DBD462100E99

View file

@ -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: