Fix collector healthcheck: use wget instead of curl

The otel-collector-contrib image is Alpine-based and doesn't include
curl. Switch the healthcheck to wget --spider which is available in
the base image.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-03-12 21:56:17 +00:00
parent fb5e45a22b
commit f34d528426

View File

@@ -47,7 +47,7 @@ services:
networks:
- workload-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:13133/"]
test: ["CMD", "wget", "--spider", "-q", "http://localhost:13133/"]
interval: 5s
timeout: 3s
retries: 10