Skip to content

docs(readme): rewrite "Persistent data" section for clarity/accuracy#2566

Open
joshtrichards wants to merge 1 commit intomasterfrom
jtr/docs-readme-persistent-data-rewrite
Open

docs(readme): rewrite "Persistent data" section for clarity/accuracy#2566
joshtrichards wants to merge 1 commit intomasterfrom
jtr/docs-readme-persistent-data-rewrite

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

The current "Persistent data" section jumps into volume mount examples without explaining how the image manages /var/www/html or why certain volumes are safe and others aren't.

This rewrite restructures the section to lead with the concepts an administrator needs -- how upgrades replace contents, what upgrade.exclude protects, and the risks of anonymous volumes -- before showing the mount examples. It also accounts for SQLite users (who don't need a separate database volume), updates the apps vs custom_apps warning, iterates on the coverage of how to safely add custom volumes under /var/www/html, and adds a brief note on backups.

Restructure and rewrite the persistent data documentation to better explain how the image manages /var/www/html, how upgrades interact with volume contents, and what administrators need to know to keep their data safe.

Key changes:
- Explain the upgrade replacement behavior and upgrade.exclude up front
- Clarify warning about anonymous volume pitfalls during container recreation
- Account for SQLite (no separate database container/volume needed)
- Clarify that /var/www/html/apps should not be separately mounted
- Clarify how to add custom volumes safely (mount outside
/var/www/html, or build a custom image with a modified
/upgrade.exclude)
- Add a brief backups subsection

Signed-off-by: Josh <josh.t.richards@gmail.com>
joshtrichards added a commit that referenced this pull request Apr 5, 2026
…starts

Add collapsible Docker Compose examples alongside existing `docker run` commands in the "Using the apache image" and "Using the fpm image" sections, using <details> blocks to avoid bloating the page.

The FPM example includes the required nginx service and links to the Nextcloud nginx documentation and the existing FPM examples in this repository for a working nginx.conf.

Docker Compose equivalents for the "Persistent data" and "Additional volumes" sections are deferred pending the merge of #2566.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant