Fix INSTALLATION_PLAYBOOK.md: backend-billing pull_policy must be always, not missing

Found live: BACKEND_BILLING_PULL_POLICY=missing only re-pulls an image if
the tag isn't already cached on the VPS, so a scripts/prod.sh push under
the same :latest tag was silently never picked up on redeploy — the
container kept running stale code with no error anywhere. Every other
image in this project already defaults to "always"; this one should too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
This commit is contained in:
JasonFraser 2026-10-04 16:17:29 -04:00
parent c35003c2fa
commit f6983d13d7
1 changed files with 6 additions and 2 deletions

View File

@ -106,12 +106,16 @@ push `backend-billing`'s image before the first deploy.**
`pull_policy: never` by default — correct for local dev (uses whatever was just built locally),
but on a fresh Dokploy VPS there's no image to pull at all until one has actually been pushed
somewhere it can reach. Set `BACKEND_BILLING_IMAGE` to a real registry path and
`BACKEND_BILLING_PULL_POLICY=missing` in `.env` first (see `.env.example`) — `build.sh` detects
`BACKEND_BILLING_PULL_POLICY=always` in `.env` first (see `.env.example`) — `build.sh` detects
the registry path automatically and pushes; set `DOKPLOY_URL`/`DOKPLOY_API_TOKEN`/
`DOKPLOY_COMPOSE_ID` too if it should also trigger the redeploy itself. The VPS never builds this
image from source — same build-locally-test-locally-ship-the-tested-artifact reasoning as the
branding image above, and the one confirmed way to avoid Dokploy's AutoDeploy rebuilding
something slightly differently than what was actually tested.
something slightly differently than what was actually tested. **Must be `always`, not
`missing`** — confirmed the hard way: `missing` only pulls when the tag isn't already present
locally, so once the VPS has pulled this image once, every later push under the same
`:latest` tag is silently never re-pulled and the container keeps running stale code
indefinitely, with no error anywhere.
**Real client, on the production Linux VPS:** every persistent volume this stack uses (site
data, the database, the billing state) gets bind-mounted to one visible host directory instead of