Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix #9295 docker-compose healthcheck test uses curl but curl is not in the image (#9737)

Andy Gajdosik828f9491dd65
diff --git a/docker-compose.yml b/docker-compose.yml
index 2ef84882298..2e90d897f21 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,18 +21,13 @@ services:
env_file:
- .env # Load local .env file
depends_on:
- - db # Indicates that this service depends on the 'db' service, ensuring 'db' starts first
- healthcheck: # Defines the health check configuration for the container
- test: [
- "CMD",
- "curl",
- "-f",
- "http://localhost:4000/health/liveliness || exit 1",
- ] # Command to execute for health check
- interval: 30s # Perform health check every 30 seconds
- timeout: 10s # Health check command times out after 10 seconds
- retries: 3 # Retry up to 3 times if health check fails
- start_period: 40s # Wait 40 seconds after container start before beginning health checks
+ - db # Indicates that this service depends on the 'db' service, ensuring 'db' starts first
+ healthcheck: # Defines the health check configuration for the container
+ test: [ "CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:4000/health/liveliness || exit 1" ] # Command to execute for health check
+ interval: 30s # Perform health check every 30 seconds
+ timeout: 10s # Health check command times out after 10 seconds
+ retries: 3 # Retry up to 3 times if health check fails
+ start_period: 40s # Wait 40 seconds after container start before beginning health checks
db:
image: postgres:16