From 08f7f5bb62a26850141983671787c990f2e145c2 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 07:52:59 +0400 Subject: [PATCH] compose: declare the healthcheck that the image already has asxpio-ops moves to NixOS, where containers run under Podman. Podman ignores the HEALTHCHECK of OCI-format images, which is what kaniko pushes, so the container would never report "healthy" and the deploy, which waits for exactly that, would time out. Copy the image's healthcheck into the compose file. Under Docker, which reads it from the image today, nothing changes. Assisted-by: Claude:opus-5-5 --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 190b932..ccbe96e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: -- 2.54.0