Skip to content

Commit c56c846

Browse files
committed
chore: add healthcheck to docker-compose
1 parent ebabfc2 commit c56c846

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ services:
88
ipc: host
99
environment:
1010
- NODE_ENV=production
11+
healthcheck:
12+
test: ["CMD", "bun", "-e", "fetch('http://localhost:8081/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
13+
interval: 30s
14+
timeout: 10s
15+
retries: 3
16+
start_period: 30s

0 commit comments

Comments
 (0)