Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

feat: healthcheck for Openlit docker (Docker-compose) (#970)

Nicolai Petrov789672c8f4a5
diff --git a/docker-compose.yml b/docker-compose.yml
index 088cac0a..12be0df4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -64,6 +64,12 @@ services:
volumes:
- openlit-data:/app/client/data
- ./assets/otel-collector-config.yaml:/etc/otel/otel-collector-config.yaml
+ healthcheck:
+ test: ["CMD", "curl", "-f", "http://openlit:3000"]
+ interval: 5s
+ timeout: 3s
+ retries: 10
+ start_period: 30s
restart: always
volumes:
diff --git a/src/dev-docker-compose.yml b/src/dev-docker-compose.yml
index 348d194d..17b4304a 100644
--- a/src/dev-docker-compose.yml
+++ b/src/dev-docker-compose.yml
@@ -67,6 +67,12 @@ services:
volumes:
- openlit-data:/app/client/data
- ../assets/otel-collector-config.yaml:/etc/otel/otel-collector-config.yaml
+ healthcheck:
+ test: ["CMD", "curl", "-f", "http://openlit:3000"]
+ interval: 5s
+ timeout: 3s
+ retries: 10
+ start_period: 30s
restart: always
volumes: