From cf130312ff1664f564275014dc6bfeaac418acb2 Mon Sep 17 00:00:00 2001 From: Jamie Brunton Date: Tue, 30 Dec 2025 20:53:31 +0000 Subject: [PATCH] Update --- apps/web/Dockerfile | 3 +++ apps/web/docker-compose.prod.yml | 4 +++- apps/web/docker-compose.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 77281c5..f708b0d 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -21,6 +21,9 @@ WORKDIR /app ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 +# Install curl for healthcheck +RUN apk add --no-cache curl + # Create non-root user RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs diff --git a/apps/web/docker-compose.prod.yml b/apps/web/docker-compose.prod.yml index 5e95a20..bb9f096 100644 --- a/apps/web/docker-compose.prod.yml +++ b/apps/web/docker-compose.prod.yml @@ -5,12 +5,14 @@ services: build: context: . dockerfile: Dockerfile + ports: + - "3000:3000" environment: - NODE_ENV=production - NEXT_TELEMETRY_DISABLED=1 restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] + test: ["CMD", "curl", "-f", "http://localhost:3000/"] interval: 30s timeout: 10s retries: 3 diff --git a/apps/web/docker-compose.yml b/apps/web/docker-compose.yml index be7ac5a..c09fbc6 100644 --- a/apps/web/docker-compose.yml +++ b/apps/web/docker-compose.yml @@ -12,7 +12,7 @@ services: - NEXT_TELEMETRY_DISABLED=1 restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"] + test: ["CMD", "curl", "-f", "http://localhost:3000/"] interval: 30s timeout: 10s retries: 3