Skip to content

Commit 15377a9

Browse files
committed
Use healthcheck on /
1 parent 3f6e211 commit 15377a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

samples/nextjs/compose.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ services:
55
build:
66
context: ./app
77
dockerfile: Dockerfile
8+
89
ports:
910
- target: 3000
1011
mode: ingress
1112
published: 3000
13+
14+
healthcheck:
15+
test: wget -q --spider http://localhost:3000/ || exit 1
16+
1217
deploy:
1318
resources:
1419
reservations:
1520
cpus: '0.50'
16-
memory: 512M
21+
memory: 512M

0 commit comments

Comments
 (0)