fix: healthcheck через python3 вместо pgrep

This commit is contained in:
2026-05-17 15:31:29 +07:00
parent 152334434c
commit 2d4307d2aa
+2 -3
View File
@@ -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: