Skip to content

Commit a02f870

Browse files
add a healthcheck
1 parent 817f583 commit a02f870

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

samples/google-adk/compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@ services:
33
build: .
44
ports:
55
- "8080:8080"
6+
healthcheck:
7+
test:
8+
[
9+
"CMD",
10+
"python3",
11+
"-c",
12+
"import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:8080/').status==200 else exit(1)",
13+
]
14+
interval: 30s
15+
timeout: 10s
16+
retries: 5

0 commit comments

Comments
 (0)