From f6983d13d7b31c3b759298c7f9503523121810aa Mon Sep 17 00:00:00 2001 From: JasonFraser Date: Sun, 4 Oct 2026 16:17:29 -0400 Subject: [PATCH] Fix INSTALLATION_PLAYBOOK.md: backend-billing pull_policy must be always, not missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y --- playbook/INSTALLATION_PLAYBOOK.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/playbook/INSTALLATION_PLAYBOOK.md b/playbook/INSTALLATION_PLAYBOOK.md index 015a11b..c1c1220 100644 --- a/playbook/INSTALLATION_PLAYBOOK.md +++ b/playbook/INSTALLATION_PLAYBOOK.md @@ -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