deploy
All checks were successful
Build & Deploy MB Grid Solutions / build-and-deploy (push) Successful in 1m40s

This commit is contained in:
2026-01-29 11:51:41 +01:00
parent 8176e062ff
commit 47fc471e14
2 changed files with 6 additions and 1 deletions

5
app/api/health/route.ts Normal file
View File

@@ -0,0 +1,5 @@
import { NextResponse } from 'next/server';
export async function GET() {
return NextResponse.json({ status: 'ok' }, { status: 200 });
}

View File

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