Merge pull request 'compose: declare the healthcheck that the image already has' (#19) from podman-healthcheck into main
All checks were successful
Build and Deploy to Production / test (push) Successful in 9m55s
Build and Deploy to Production / build (push) Successful in 1m0s
Build and Deploy to Production / deploy (push) Successful in 1m8s

Reviewed-on: #19
This commit is contained in:
Sergei Poljanski 2026-11-17 05:43:57 +00:00
commit c8c81ea584

View file

@ -5,6 +5,14 @@ services:
build: .
image: asxpio:latest
container_name: asxpio
# 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","ruby -rnet/http -e 'port = ENV.fetch(\"PUMA_PORT\", \"3000\"); exit(Net::HTTP.get_response(URI(\"http://127.0.0.1:#{port}/healthz\")).code == \"200\" ? 0 : 1)'"]
interval: 30s
timeout: 5s
start_period: 20s
retries: 3
restart: unless-stopped
env_file: .env
networks: