fix(glitchtip): healthcheck via python3 /_health/ — image has no wget (#644) (#645)
All checks were successful
Deploy / changes (push) Successful in 6s
Deploy / build-worker (push) Successful in 30s
Deploy / build-backend (push) Successful in 30s
Deploy / build-frontend (push) Successful in 31s
Deploy / deploy (push) Successful in 1m0s

This commit is contained in:
Light1YT 2026-05-29 12:04:05 +00:00
parent af6278eaee
commit 9380b76cf9

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]