-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Currently, in the image the Nextcloud files are stored in /usr/src/nextcloud. Everytime a Nextcloud container is created, entrypoint.sh syncs those files to /var/www/html when the version in /usr/src/nextcloud is newer than /var/www/html, then runs php /var/www/html/occ upgrade --no-app-disable to upgrade the database structure and so on.
This works well for a small group of users. Everything works fine without too much human attention.
But if you are running Nextcloud in production, things will be different:
- You may not want the DB upgrade to be run automatically, especially when running multiple Nextcloud services behind a loadbalancer.
- Nextcloud files should be immutable once the image is built, for security, stability, and testing reasons.
- Mouting
/var/www/htmlas a volume makes it unfriendly to rollback to a earlier version when you are running on Kubernetes or OpenShift.
Is it possible to remove the /var/www/html volume? Mounting subdirectories like custom_apps, config, themes, and data should be adequate AFAIK (correct me if I am wrong).
After disabling the auto-upgrade, users can still upgrade through the Web UI or occ.