add: health check
health check for docker
This commit is contained in:
parent
a27af9aefb
commit
d19e802c8c
2 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ services:
|
|||
"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:1338"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
1
server/api/health.ts
Normal file
1
server/api/health.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export default defineEventHandler((): string => 'ok' )
|
Loading…
Add table
Add a link
Reference in a new issue