docker-owncloud icon indicating copy to clipboard operation
docker-owncloud copied to clipboard

Usage of Apps with bundled nginx

Open pc-fan opened this issue 8 years ago • 5 comments

If I install for example the owncloud calender app and try to access the calendar (at index.php/apps/calendar/) several ressource could not be loaded. The the containers are set up like described in the quickstart section of the README. The /var/log/nginx/error.log of the owncloud-nginx container shows that the apps folder in the nginx container does not contain the installed apps, e.g.:

*1116 open() "/var/www/owncloud/apps/calendar/css/style.css" failed (2: No such file or directory)
*1140 open() "/var/www/owncloud/apps/calendar/js/on-event.js" failed (2: No such file or directory)
*1142 open() "/var/www/owncloud/apps/calendar/js/settings.js" failed (2: No such file or directory)
*1144 open() "/var/www/owncloud/apps/calendar/js/share.js" failed (2: No such file or directory)

It seems like the apps are only installed inside the fpm container.

File listing in the fpm container:

root@b2a13359bab9:/var/www/owncloud# ls apps
activity  contacts    external  files_external   files_sharing     files_trashbin  files_videoviewer  gallery        provisioning_api  updater        user_ldap
calendar  encryption  files     files_pdfviewer  files_texteditor  files_versions  firstrunwizard     notifications  templateeditor    user_external

File listing in the nginx container:

root@02ee105a58b2:/var/www/owncloud# ls apps
activity  encryption  external  files  files_external  files_pdfviewer  files_sharing  files_texteditor  files_trashbin  files_versions  files_videoviewer  firstrunwizard  gallery  notifications  provisioning_api  templateeditor  updater  user_external  user_ldap

Maybe the apps directory could become a volume or a part of the /var/lib/owncloud volume and thus be shared between the fpm and the nginx container? The nginx container could then be started using the --volumes-from owncloud directive.

pc-fan avatar Jan 13 '16 00:01 pc-fan