From 90dc2fcd9d22ade2bfe187c2cce92ee0aec77b5e Mon Sep 17 00:00:00 2001 From: J Stickler Date: Wed, 4 Feb 2026 15:18:50 -0500 Subject: [PATCH] docs: update docker compose (#20683) --- examples/getting-started/docker-compose.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/getting-started/docker-compose.yaml b/examples/getting-started/docker-compose.yaml index bb815e7e54..676c6febe9 100644 --- a/examples/getting-started/docker-compose.yaml +++ b/examples/getting-started/docker-compose.yaml @@ -15,7 +15,8 @@ services: depends_on: - minio healthcheck: - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ] + test: [ "CMD", "/usr/bin/loki", "-health" ] + start_period: 30s interval: 10s timeout: 5s retries: 5 @@ -34,7 +35,8 @@ services: volumes: - ./loki-config.yaml:/etc/loki/config.yaml healthcheck: - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ] + test: [ "CMD", "/usr/bin/loki", "-health" ] + start_period: 30s interval: 10s timeout: 5s retries: 5 @@ -128,6 +130,12 @@ services: command: "-config.file=/etc/loki/config.yaml -target=backend -legacy-read-mode=false" depends_on: - gateway + healthcheck: + test: [ "CMD", "/usr/bin/loki", "-health" ] + start_period: 30s + interval: 30s + timeout: 10s + retries: 5 networks: - loki