CHANGELOG.md gets the 0.3.0 notes: everything since 0.2.0 by area, and
the steps for upgrading a 0.2.0 install (new compose files with a stock
PocketBase on 8070, pb_data at /pb/pb_data, the media service, and the
SMTP password to enter once more). The release workflow now uses the
tag's CHANGELOG section as the Gitea release text. A v0.2.0 compose stack
with data was upgraded in place to this commit and kept its data.
Also fixes what CI would have failed on:
- Server lint (golangci-lint v2.14): errors.Is/As for sentinel errors,
the bbolt/errors package instead of the deprecated bolt error, one
needless conversion, and commented nolints for gosec false positives.
- SPDX headers on Database/export-schema.sh and Server/entrypoint.sh.
- Prettier on two files; the generated pbschema/schema.json is ignored.
- The editor-bridge dist page rebuilt to match the phone app's copy.
PLAN.md and the upgrade guide point to the release notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>