fix(docker-compose): update healthcheck endpoint to include API path

This commit is contained in:
vchikalkin 2025-09-04 14:08:32 +03:00
parent 4cff4c8bbe
commit d870fa5a21
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
import { NextResponse } from 'next/server';
export function GET() {
return new NextResponse('OK');
}

View File

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