From 2522f3536dffaf022e1a79cc51d6c24d10fcf987 Mon Sep 17 00:00:00 2001 From: Kharec Date: Thu, 25 Dec 2025 18:34:39 +0100 Subject: [PATCH] feat: create health check --- docker/compose.prod.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/compose.prod.yml b/docker/compose.prod.yml index 66996bc..e934f6e 100644 --- a/docker/compose.prod.yml +++ b/docker/compose.prod.yml @@ -25,6 +25,11 @@ services: APP_BASE_URL: ${APP_BASE_URL:-http://127.0.0.1:8080} ports: - "8080:8080" + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q '\"status\":\"healthy\"'"] + interval: 10s + timeout: 5s + retries: 5 restart: always networks: - goyco