fix(glitchtip): healthcheck via python3 /_health/ — image has no wget (#644) #645
1 changed files with 5 additions and 2 deletions
|
|
@ -160,10 +160,13 @@ services:
|
||||||
ENABLE_ORGANIZATION_CREATION: "false"
|
ENABLE_ORGANIZATION_CREATION: "false"
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 512m
|
mem_limit: 512m
|
||||||
|
# Образ glitchtip:6.1.6 НЕ содержит wget/curl (только python3) → старый
|
||||||
|
# wget-healthcheck падал на missing-binary → контейнер вечно unhealthy (#644).
|
||||||
|
# Пробуем канонический /_health/ (GET → 200) через встроенный python3.
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 60s
|
start_period: 60s
|
||||||
networks: [default]
|
networks: [default]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue