fix(docker-compose): update healthcheck endpoint to include API path
This commit is contained in:
parent
4cff4c8bbe
commit
d870fa5a21
5
apps/web/app/api/health/route.ts
Normal file
5
apps/web/app/api/health/route.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export function GET() {
|
||||
return new NextResponse('OK');
|
||||
}
|
||||
@ -5,7 +5,7 @@ services:
|
||||
- .env
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/health']
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user