deploy
All checks were successful
Build & Deploy MB Grid Solutions / build-and-deploy (push) Successful in 1m40s
All checks were successful
Build & Deploy MB Grid Solutions / build-and-deploy (push) Successful in 1m40s
This commit is contained in:
5
app/api/health/route.ts
Normal file
5
app/api/health/route.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { NextResponse } from 'next/server';
|
||||||
|
|
||||||
|
export async function GET() {
|
||||||
|
return NextResponse.json({ status: 'ok' }, { status: 200 });
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
- "traefik.http.services.mb-grid-solutions.loadbalancer.server.port=3000"
|
- "traefik.http.services.mb-grid-solutions.loadbalancer.server.port=3000"
|
||||||
- "traefik.http.routers.mb-grid-solutions.middlewares=auth@docker"
|
- "traefik.http.routers.mb-grid-solutions.middlewares=auth@docker"
|
||||||
healthcheck:
|
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
|
interval: 5s
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user