Skip to content

Commit 98503a9

Browse files
committed
fix healthcheck for flask
1 parent ffc5532 commit 98503a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/flask/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ services:
1414
target: 5000
1515
published: 5000
1616
healthcheck:
17-
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
17+
test: ["CMD", "python3", "-c", "import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read()", "http://localhost:5000/"]

0 commit comments

Comments
 (0)