add: health check

health check for docker
This commit is contained in:
webfussel 2025-07-15 13:38:50 +02:00
parent a27af9aefb
commit d19e802c8c
2 changed files with 2 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1 @@
export default defineEventHandler((): string => 'ok' )