Skip to content

Any thoughts to remove the /var/www/html volume? #381

@vfreex

Description

@vfreex

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:

  1. You may not want the DB upgrade to be run automatically, especially when running multiple Nextcloud services behind a loadbalancer.
  2. Nextcloud files should be immutable once the image is built, for security, stability, and testing reasons.
  3. Mouting /var/www/html as 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions