Skip to content

Commit f4ce531

Browse files
authored
create healthcheck url
1 parent b37d792 commit f4ce531

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

samples/nextjs/compose.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ services:
55
build:
66
context: ./web
77
dockerfile: Dockerfile
8+
89
ports:
910
- target: 3000
1011
mode: ingress
1112
published: 3000
13+
healthcheck:
14+
test: wget -q --spider http://localhost:3000/api/health || exit 1
15+
1216
deploy:
1317
resources:
1418
reservations:
1519
cpus: '0.50'
16-
memory: 512M
20+
memory: 512M
21+
22+

0 commit comments

Comments
 (0)