Commit Graph
1 Commits
Author SHA1 Message Date
tajniak81andClaude Opus 5.5 24a2d275a0 Fix docwell-server data dir ownership on start
The server runs as docwell (uid 10001), but a host bind mount for
SERVER_DATA, or a volume created by an older image, arrives owned by
root, so the search index failed with "mkdir /data/search.bleve:
permission denied".

The image now starts as root through a small entrypoint that chowns
DOCWELL_DATA_DIR to docwell when needed, then runs docwell-server as
docwell via su-exec. A container already started with a non-root
user: skips the fix and runs the server directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:35:08 +01:00