fix: healthcheck через python3 вместо pgrep
This commit is contained in:
@@ -59,13 +59,12 @@ services:
|
|||||||
max-file: "5"
|
max-file: "5"
|
||||||
|
|
||||||
# ── Healthcheck ─────────────────────────────────────────────────
|
# ── Healthcheck ─────────────────────────────────────────────────
|
||||||
# Контейнер помечается healthy, если процесс monitor.py жив
|
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
start_period: 15s
|
||||||
|
|
||||||
# ── Метки для Portainer ─────────────────────────────────────────
|
# ── Метки для Portainer ─────────────────────────────────────────
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user