Merge pull request #239 from immich-power-tools/bug-fixes
fix: health check
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
HEALTHCHECK CMD curl --fail http://localhost:3000/api/health || exit 1
|
||||
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user