Merge pull request 'compose: declare the healthcheck that the image already has' (#8) from podman-healthcheck into main
Reviewed-on: #8
This commit is contained in:
commit
bac90e46ec
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue