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>
21 lines
551 B
YAML
21 lines
551 B
YAML
services:
|
|
kammergut:
|
|
build:
|
|
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:
|
|
- "4422:80"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|