From 47fc471e14483b720b183b180fa933c06e7390f1 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 29 Jan 2026 11:51:41 +0100 Subject: [PATCH] deploy --- app/api/health/route.ts | 5 +++++ docker-compose.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 app/api/health/route.ts diff --git a/app/api/health/route.ts b/app/api/health/route.ts new file mode 100644 index 0000000..4e09dd5 --- /dev/null +++ b/app/api/health/route.ts @@ -0,0 +1,5 @@ +import { NextResponse } from 'next/server'; + +export async function GET() { + return NextResponse.json({ status: 'ok' }, { status: 200 }); +} diff --git a/docker-compose.yaml b/docker-compose.yaml index c75e44a..5aee946 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,7 +12,7 @@ services: - "traefik.http.services.mb-grid-solutions.loadbalancer.server.port=3000" - "traefik.http.routers.mb-grid-solutions.middlewares=auth@docker" healthcheck: - test: ["CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"] + test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"] interval: 5s timeout: 2s retries: 10