diff --git a/docker-compose.yml b/docker-compose.yml index fe154ba..6999e06 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -400,7 +400,7 @@ services: loki: condition: service_healthy healthcheck: - test: ["CMD", "sh", "-c", "if curl -f http://localhost:9080/ready >/dev/null 2>&1; then echo 'Promtail ready: Log collection service responding'; exit 0; else echo 'Promtail starting: Log collection service not yet ready'; exit 1; fi"] + test: ["CMD", "sh", "-c", "if [ -f /tmp/positions.yaml ]; then echo 'Promtail ready: Log collection service responding'; exit 0; else echo 'Promtail starting: Log collection service not yet ready'; exit 1; fi"] interval: 30s timeout: 10s retries: 3