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: