Merge pull request #239 from immich-power-tools/bug-fixes

fix: health check
This commit is contained in:
Sai charan Guntupalli
2026-03-21 23:20:14 +05:30
committed by GitHub
2 changed files with 8 additions and 3 deletions
+6
View File
@@ -28,6 +28,8 @@ ENV VERSION=$VERSION
ENV NODE_ENV=production
RUN apk add --no-cache curl
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
@@ -52,4 +54,8 @@ ENV PORT=3000
# Uncomment the following line in case you want to disable telemetry.
ENV NEXT_TELEMETRY_DISABLED=1
ENV HOSTNAME=0.0.0.0
CMD ["node", "server.js"]
HEALTHCHECK CMD curl --fail http://localhost:3000/api/health || exit 1
+1 -2
View File
@@ -9,8 +9,7 @@ services:
env_file:
- .env
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 10s