fix: healthcheck через python3 вместо pgrep
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user