fix(glitchtip): healthcheck via python3 /_health/ — image has no wget (#644) #645

Merged
Light1YT merged 1 commit from fix/644-glitchtip-healthcheck into main 2026-05-29 12:04:06 +00:00

View file

@ -160,10 +160,13 @@ services:
ENABLE_ORGANIZATION_CREATION: "false"
restart: always
mem_limit: 512m
# Образ glitchtip:6.1.6 НЕ содержит wget/curl (только python3) → старый
# wget-healthcheck падал на missing-binary → контейнер вечно unhealthy (#644).
# Пробуем канонический /_health/ (GET → 200) через встроенный python3.
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/api/0/"]
test: ["CMD", "python3", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://localhost:8080/_health/', timeout=8).status == 200 else 1)"]
interval: 30s
timeout: 5s
timeout: 10s
retries: 5
start_period: 60s
networks: [default]