From 2d4307d2aa3b6e9ddd5adc366ad6ec89d3e6ad17 Mon Sep 17 00:00:00 2001 From: Sergey Date: Sun, 17 May 2026 15:31:29 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20healthcheck=20=D1=87=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B7=20python3=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20pgrep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stack.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stack.yml b/stack.yml index 1523ef6..b7911ff 100644 --- a/stack.yml +++ b/stack.yml @@ -59,13 +59,12 @@ services: max-file: "5" # ── Healthcheck ───────────────────────────────────────────────── - # Контейнер помечается healthy, если процесс monitor.py жив healthcheck: - test: ["CMD-SHELL", "pgrep -f monitor.py || exit 1"] + test: ["CMD-SHELL", "python3 -c \"import os; os.kill(1, 0)\" 2>/dev/null || exit 1"] interval: 30s timeout: 5s retries: 3 - start_period: 10s + start_period: 15s # ── Метки для Portainer ───────────────────────────────────────── labels: