nextcloud: Give nginx access to the nextcloud root

pull/54/head
Tristan Daniël Maat 2021-10-13 15:29:12 +01:00
parent 20cda44040
commit 90926e2eee
Signed by: tlater
GPG Key ID: 49670FD774E43268
1 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@
image = "nextcloud:fpm-alpine";
dependsOn = [ "postgres" ];
volumes = [
"nextcloud-root:/var/www/html"
"nextcloud-apps:/var/www/html/custom_apps"
"nextcloud-config:/var/www/html/config"
"nextcloud-data:/var/www/html/data"
@ -34,8 +35,10 @@
nginx = {
image = "nginx:alpine";
dependsOn = [ "nextcloud" ];
volumes =
[ "${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro" ];
volumes = [
"nextcloud-root:/var/www/html:ro"
"${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro"
];
extraOptions = [ "--volumes-from=nextcloud-nextcloud" ];
};