Initialize shared volume ownership#865
Open
vuilleumierc wants to merge 1 commit into
Open
Conversation
groldan
requested changes
Jun 11, 2026
groldan
left a comment
Member
There was a problem hiding this comment.
Hi Cécile, thanks for the fix, the root-owned volume problem on first startup is real and worth solving.
One blocking issue: this PR targets the gh-pages branch, which is the generated documentation site. It's published automatically by the docs workflow from the docs/ build on every push to main, hence your change would be silently overwritten the next time the docs deploy runs.
The source of truth for this file is on main at docs/src/deploy/docker-compose/dev/datadir/compose.yml. Could you retarget the PR to main and apply the change there? See docs/README.md for how the docs tree is organized (docs/src/ is the source, docs/site/ is the generated output that ends up on gh-pages).
A couple suggestions:
- The same problem affects the sibling compose files: stable/datadir/compose.yml (same two volumes) and both pgconfig variants (their geowebcache_data volume). It would be great to fix them consistently, especially the stable one since that's what most
users copy. - A non-recursive chown 1000:1000 /opt/app/data_directory /data/geowebcache should be enough: the services create everything beneath those directories as 1000:1000 themselves, and -R over a populated tile cache will get slow on every up.
- alpine:3.18 is EOL please pin a current tag (e.g. alpine:3.22).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set ownership of shared volumes to the user running the GeoServer services.
Otherwise the services fail on startup with the following error: