fix: not found curl in health check

This commit is contained in:
Tuluobo 2024-09-22 23:32:49 +08:00
parent 73cafbc250
commit b8368cfc32
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN set -x \
&& apk add --no-cache curl \
&& corepack enable pnpm \
&& pnpm add prisma

View File

@ -11,7 +11,7 @@ services:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
test: ["CMD-SHELL", "curl http://localhost:3000/api/health"]
interval: 5s
timeout: 5s
retries: 5