Skip to content

Commit d86d02a

Browse files
committed
refactor: ♻️ use non-shell command for healthcheck
1 parent f6cff25 commit d86d02a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

compose.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ services:
66
ports:
77
- "8000:8000"
88
healthcheck:
9-
test: python -c 'import httpx; httpx.get("http://localhost:8000/status").raise_for_status()' || exit 1
9+
test:
10+
- CMD
11+
- python
12+
- -c
13+
- import httpx; httpx.get("http://localhost:8000/status").raise_for_status()
1014
start_period: 5s
1115
interval: 5s
1216
retries: 12

0 commit comments

Comments
 (0)