Skip to content

Commit f776b8b

Browse files
committed
fix healthcheck
1 parent f93585a commit f776b8b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

samples/nextjs-postgres/compose.dev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ services:
2222
service: database
2323
environment:
2424
POSTGRES_PASSWORD: password
25+
volumes:
26+
- postgres:/var/lib/postgresql/data
2527

28+
volumes:
29+
postgres: {}
2630

samples/nextjs-postgres/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
healthcheck:
2222
# wget or curl required for healthchecks on services with a published port
2323
# this gets parsed by Defang and provided to the load balancers as well
24-
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health" ]
24+
test: ["CMD", "curl", "-f", "http://localhost:3000" ]
2525
depends_on:
2626
- database
2727

0 commit comments

Comments
 (0)