fix: add pull_policy: build so Portainer builds the image locally

Portainer's git-stack deploy runs `docker compose pull` before `up`,
which tried to fetch kammergut:0.1.0 from a registry and got
"pull access denied". The image only exists locally — `pull_policy:
build` tells Compose to build from the Dockerfile instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-05-05 14:55:04 +01:00
parent 832f7dd602
commit b7789bcb0c

View File

@@ -4,6 +4,10 @@ services:
context: .
dockerfile: Dockerfile
image: kammergut:0.1.0
# Build the image locally instead of pulling from a registry —
# otherwise Portainer's `compose pull` step fails since this image
# isn't published anywhere.
pull_policy: build
container_name: kammergut
restart: unless-stopped
ports: