From d870fa5a21abfe512a48a6cece04c413750f42da Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 4 Sep 2025 14:08:32 +0300 Subject: [PATCH] fix(docker-compose): update healthcheck endpoint to include API path --- apps/web/app/api/health/route.ts | 5 +++++ docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 apps/web/app/api/health/route.ts diff --git a/apps/web/app/api/health/route.ts b/apps/web/app/api/health/route.ts new file mode 100644 index 0000000..676c7c1 --- /dev/null +++ b/apps/web/app/api/health/route.ts @@ -0,0 +1,5 @@ +import { NextResponse } from 'next/server'; + +export function GET() { + return new NextResponse('OK'); +} diff --git a/docker-compose.yml b/docker-compose.yml index 018dcdc..b2c256b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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