From b7789bcb0cba5d0617f7659b49f945b13b1b4240 Mon Sep 17 00:00:00 2001 From: Dorian Date: Tue, 5 May 2026 14:55:04 +0100 Subject: [PATCH] fix: add pull_policy: build so Portainer builds the image locally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 28d3e33..dbbbc68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: