PocketBase: switch image to elestio/pocketbase v0.23.12 #27

Merged
reudy merged 1 commit from session/change-pocketbase-image into main 2026-11-03 10:25:43 +01:00
Member

spectado/pocketbase has been removed from Docker Hub (pulling 0.23.12 now fails with "requested access to the resource is denied"). elestio/pocketbase publishes the same PocketBase version, v0.23.12, so the schema, migrations and hooks don't change.

What differs in the image

spectado (old) elestio (new)
Port 80 8090
User root pocketbase (uid 100)
Migrations / hooks dirs /pb_migrations, /pb_hooks same (PocketBase defaults next to /pb_data)

Changes:

  • docker-compose.yml: new image, pinned by tag and digest; expose: 8090; POCKETBASE_INTERNAL_URL → :8090
  • Caddyfile: reverse_proxy pocketbase:8090
  • README / AGENTS.md updated, plus a new "Switching PocketBase image" section

⚠️ Deploy step for existing installs

Files the old image wrote are owned by root, and the new non-root image won't start on them (attempt to write a readonly database). Run this once, after a backup, before the first start:

docker compose stop pocketbase
docker compose run --rm --no-deps --user root --entrypoint chown pocketbase -R pocketbase:pocketbase /pb_data
docker compose up -d

Fresh installs need nothing.

Tested (podman 5.7 / podman-compose 1.5)

  • Copied an existing pb_data volume, then confirmed the readonly error without the chown and a clean start with it
  • Ran the README chown command as written through podman-compose
  • Full stack on the copied data: public home page renders (SSR through the internal URL), db. → /_/, admin → login, /api/health OK, /api/shop/slots hook responds, privacy cron runs
  • Fresh empty volume: starts and writes as uid 100

Not tested: logging in to the admin or checking out via Stripe on the new image (same PocketBase binary version, so not expected to differ).

🤖 Generated with Claude Code

https://claude.ai/code/session_01HA82gX7xH4zwYTr5vE7mf8

`spectado/pocketbase` has been removed from Docker Hub (pulling `0.23.12` now fails with "requested access to the resource is denied"). `elestio/pocketbase` publishes the **same PocketBase version, v0.23.12**, so the schema, migrations and hooks don't change. ## What differs in the image | | spectado (old) | elestio (new) | |---|---|---| | Port | 80 | **8090** | | User | root | **`pocketbase` (uid 100)** | | Migrations / hooks dirs | `/pb_migrations`, `/pb_hooks` | same (PocketBase defaults next to `/pb_data`) | Changes: - `docker-compose.yml`: new image, pinned by tag **and digest**; `expose: 8090`; `POCKETBASE_INTERNAL_URL` → `:8090` - `Caddyfile`: `reverse_proxy pocketbase:8090` - README / AGENTS.md updated, plus a new **"Switching PocketBase image"** section ## ⚠️ Deploy step for existing installs Files the old image wrote are owned by root, and the new non-root image won't start on them (`attempt to write a readonly database`). Run this once, after a backup, before the first start: ```sh docker compose stop pocketbase docker compose run --rm --no-deps --user root --entrypoint chown pocketbase -R pocketbase:pocketbase /pb_data docker compose up -d ``` Fresh installs need nothing. ## Tested (podman 5.7 / podman-compose 1.5) - Copied an existing `pb_data` volume, then confirmed the readonly error without the chown and a clean start with it - Ran the README chown command as written through podman-compose - Full stack on the copied data: public home page renders (SSR through the internal URL), `db.` → `/_/`, admin → login, `/api/health` OK, `/api/shop/slots` hook responds, privacy cron runs - Fresh empty volume: starts and writes as uid 100 Not tested: logging in to the admin or checking out via Stripe on the new image (same PocketBase binary version, so not expected to differ). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HA82gX7xH4zwYTr5vE7mf8
agent added 1 commit 2026-11-03 10:10:30 +01:00
spectado/pocketbase has been removed from Docker Hub. elestio publishes
the same PocketBase version (0.23.12), so schema, migrations and hooks
are unchanged. The image differs in packaging:

- listens on 8090 instead of 80 (Caddyfile, POCKETBASE_INTERNAL_URL)
- runs as non-root user `pocketbase` (uid 100), so pb_data written by
  the old root-run image needs a one-off chown; README documents it
- pinned by digest as well as tag

Tested: copy of an existing pb_data volume, README chown command via
podman-compose, then the full stack (public page renders, admin and db
routes via Caddy, shop hooks respond). A fresh volume also works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gX7xH4zwYTr5vE7mf8
reudy merged commit 5b92cae225 into main 2026-11-03 10:25:43 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#27
No description provided.