Skip to content

Commit 0f286a3

Browse files
authored
fix: update healthcheck command in compose and remove requests dependency (#258)
1 parent 5cf8bc7 commit 0f286a3

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
environment:
88
SERVER_BASE_PATH: /home/nonroot/assets
99
healthcheck:
10-
test: python -c "import requests, sys; sys.exit(0 if 'UP' in requests.get('http://localhost:8000/health').text else 1)"
10+
test: wget --tries=1 --no-verbose -qO- http://0.0.0.0:8000/health | grep -q UP
1111
start_period: 2s
1212
interval: 10s
1313
timeout: 5s

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ dependencies = [
88
"fastapi[standard-no-fastapi-cloud-cli]==0.121.1",
99
"pillow==12.0.0",
1010
# this should be part of standard-no-fastapi-cloud-cli, but is missing:
11+
# see: https://github.com/fastapi/fastapi/blob/6fae64ff49e8328048872714652a4dfa15406e41/pyproject.toml#L94-L98
1112
"pydantic-settings==2.12.0",
1213
# for Python 3.14 compatibility:
1314
"uvloop>=0.22.0",
1415
"pydantic_core>=2.40.0",
15-
# used to health check docker compose:
16-
"requests==2.32.5",
1716
]
1817

1918
[dependency-groups]

uv.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)