Skip to content

Conversation

@thefirstofthe300
Copy link

Pull Request

Description of the change

Nextcloud is capable of being built using an immutable image (see https://github.com/thefirstofthe300/nextcloud-docker). In this scenario, there is no point in mounting the /var/www and /var/www/html directories to store state. The remaining directories should be mounted, but not these two.

Benefits

Allows users to build their own immutable images which do not perform an rsync on start but still use this chart.

Possible drawbacks

The default values are not changing so I see no drawbacks.

Additional information

Signed-off-by: Danny Seymour <danny@seymour.family>
@jessebot
Copy link
Collaborator

jessebot commented Apr 9, 2024

Does anything bad happen if those volumes are mounted anyway? It looks like you linked a custom image, which you can absolutely use, but I'm unsure if we support this. Either way, the branch needs to be rebased.

@provokateurin are you aware of an immutable mode for nextcloud? I don't really see any issues with merging this, but I also don't have a quick way to test it.

@provokateurin
Copy link
Member

Nextcloud is not really immutable. It will probably run into quite a few issues because all code assumes the whole dir is writable.

@mcronce
Copy link

mcronce commented Dec 3, 2025

@provokateurin sorry for necroposting, but I couldn't find an answer searching in here or the the docker/server repos - is there any effort being made to change that? Running with the entire codebase in shared writable persistent storage makes for a pretty bad experience; those types of storage tend to be (necessarily, for consistency across networks) quite slow. There's no reason that config files can't live in mutable storage, but I wouldn't think the PHP code would need to overwrite itself (or HTML/JS/CSS, for that matter)

@provokateurin
Copy link
Member

Sorry I'm not involved in the Helm Chart anymore, however the read-only aspect is a matter of packaging (docker image) and configuration. For example NixOS (which is what I use nowadays) has the entire source code read-only in the nix store, so it is absolutely possible.

@mcronce
Copy link

mcronce commented Dec 3, 2025

I'll raise an issue there. Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants