Release: pushing a v* tag builds docwell-db, docwell-server, docwell-web and the all-in-one image for linux/amd64 and linux/arm64 and pushes them to GHCR, tagged with the version and latest. The build stages run on the build machine's platform and Go cross-compiles, so arm64 needs no emulation except for the final apk step (checked by building the server image for arm64). The compose files name the released images, so `docker compose up -d` runs a release and `--build` still builds the checkout; DOCWELL_REGISTRY and DOCWELL_VERSION pick them. Docs: Docs-Site is a VitePress site with a quick start, every configuration variable, reverse-proxy setups, backups and upgrades, a user guide, people and access, the admin panel and the API. CI builds it, and the Docs workflow publishes it to GitHub Pages. It lives outside docs/, which stays local planning material. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.5 KiB
Backups and upgrades
Everything that matters lives in docwell-db's data directory (the pb_data volume): the database, page history
and, unless files go to S3, the uploaded files. The search index in docwell-server's /data is rebuilt from it.
Backups
In Admin panel → Maintenance → Backups, Create backup writes a zip of the database and its files into
pb_data/backups. Download it and keep a copy somewhere else: a backup on the same disk does not survive the disk.
Backups made while people edit are consistent: PocketBase copies the database safely while it runs.
For scheduled backups, back up the pb_data volume with your usual tools (for example a nightly docker run of
restic or borg against the volume), or call the API from cron:
curl -fsS -X POST https://wiki.example.com/api/v1/admin/backups -H "Authorization: Bearer $TOKEN"
Restore
- Stop Docwell:
docker compose down. - Replace the contents of the
pb_datavolume with the contents of the backup zip. - Start Docwell again:
docker compose up -d. The search index rebuilds on its own.
Upgrades
-
Make a backup and download it.
-
Read the release notes for anything to do by hand.
-
Pull and restart:
docker compose pull docker compose up -dPin a version with
DOCWELL_VERSION=0.1.0in.envinstead of followinglatest.
Database changes (migrations) run on their own when docwell-db starts. Going back to an older version after a migration is not supported; restore the backup instead.