Skip to content

Commit f97fc0e

Browse files
committed
fix: update healthcheck command in docker-compose.yml to use bun for improved reliability
1 parent 5b1ddfa commit f97fc0e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs/docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ services:
77
target: prod
88
restart: always
99
healthcheck:
10-
test: ["CMD", "curl", "-f", "http://localhost:4321/"]
10+
test:
11+
[
12+
"CMD",
13+
"bun",
14+
"-e",
15+
"process.exit((await fetch('http://localhost:4321/')).ok ? 0 : 1)",
16+
]
1117
interval: 30s
1218
timeout: 10s
1319
retries: 3

0 commit comments

Comments
 (0)