We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a2dcbf + e1cb58c commit be269daCopy full SHA for be269da
compose.yaml
@@ -5,10 +5,15 @@ services:
5
build:
6
context: ./app
7
dockerfile: Dockerfile
8
+
9
ports:
10
- target: 3000
11
mode: ingress
12
published: 3000
13
14
+ healthcheck:
15
+ test: wget -q --spider http://localhost:3000/api/health || exit 1
16
17
deploy:
18
resources:
19
reservations:
web/src/app/api/health/route.ts
@@ -0,0 +1,5 @@
1
+import { NextResponse } from 'next/server';
2
3
+export async function GET() {
4
+ return NextResponse.json({ msg: 'Success!' });
+}
0 commit comments