Skip to content

Commit a8b19ce

Browse files
committed
fix(docker): update healthcheck command and increase retries in docker-compose
1 parent 539395a commit a8b19ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/cms/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN pnpm --filter cms build
2828
FROM node:24.8.0-alpine AS production
2929

3030
RUN corepack enable pnpm
31+
RUN apk add --no-cache curl
3132
WORKDIR /app
3233

3334
# Copy workspace configuration

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ services:
4848
volumes:
4949
- cms_uploads:/app/apps/cms/uploads
5050
healthcheck:
51-
test: ['CMD-SHELL', 'curl -f http://localhost:3001/admin || exit 1']
51+
test: ['CMD-SHELL', 'nc -z localhost 3001 || exit 1']
5252
interval: 30s
5353
timeout: 10s
54-
retries: 3
54+
retries: 5
5555
start_period: 60s
5656

5757
# Web Application

0 commit comments

Comments
 (0)