SuZeAI commited on
Commit
470e1c9
·
1 Parent(s): 3135f39

Fix Qdrant healthcheck in docker-compose

Browse files

The qdrant image ships no curl/wget, so the curl-based healthcheck always failed
and reported the container unhealthy. Probe the REST port with bash /dev/tcp
instead.

Files changed (1) hide show
  1. docker-compose.yml +3 -2
docker-compose.yml CHANGED
@@ -42,9 +42,10 @@ services:
42
  - "6334:6334"
43
  volumes:
44
  - qdrant_data:/qdrant/storage
 
45
  healthcheck:
46
- test: ["CMD-SHELL", "curl -f http://localhost:6333/health || exit 1"]
47
- interval: 5s
48
  timeout: 5s
49
  retries: 5
50
 
 
42
  - "6334:6334"
43
  volumes:
44
  - qdrant_data:/qdrant/storage
45
+ # Qdrant image ships no curl/wget; use bash /dev/tcp to probe the REST port.
46
  healthcheck:
47
+ test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/localhost/6333"]
48
+ interval: 10s
49
  timeout: 5s
50
  retries: 5
51