Merge pull request 'compose: declare the healthcheck that the image already has' (#8) from podman-healthcheck into main
All checks were successful
Build and Deploy to Production / check (push) Successful in 7s
Build and Deploy to Production / build (push) Successful in 8s
Build and Deploy to Production / deploy (push) Successful in 39s

Reviewed-on: #8
This commit is contained in:
Sergei Poljanski 2026-11-17 04:36:34 +00:00
commit bac90e46ec

View file

@ -5,6 +5,14 @@ services:
build: .
image: blog:latest
container_name: blog
# Same as the image HEALTHCHECK. Podman ignores HEALTHCHECK in OCI-format
# images (what kaniko pushes), and the deploy waits for "healthy".
healthcheck:
test: ["CMD-SHELL","wget -qO /dev/null http://127.0.0.1/ || exit 1"]
interval: 30s
timeout: 5s
start_period: 5s
retries: 3
restart: unless-stopped
networks:
- traefik