Skip to content

Commit 56c59df

Browse files
committed
add health check
1 parent 0ccb002 commit 56c59df

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

samples/agentic-strands/compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ services:
1313
LLM_URL: http://llm/api/v1/
1414
LLM_MODEL: default
1515
OPENAI_API_KEY: FAKE_TOKEN
16+
healthcheck:
17+
test:
18+
[
19+
"CMD",
20+
"python3",
21+
"-c",
22+
"import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:5001/').status == 200 else exit(1)",
23+
]
24+
interval: 30s
25+
timeout: 5s
26+
retries: 3
27+
start_period: 10s
1628
depends_on:
1729
- llm
1830

0 commit comments

Comments
 (0)