feat: new healthcheck
Build and Deploy / lint-frontend (push) Canceled after 0s
Build and Deploy / build-backend (push) Canceled after 0s
Build and Deploy / build-frontend (push) Canceled after 0s
Build and Deploy / deploy (push) Canceled after 0s
Build and Deploy / test-backend (push) Canceled after 11s

This commit is contained in:
Ivan Rezchikov
2026-09-18 14:12:03 +03:00
parent c84b18faa8
commit 0c627e3505
+2 -2
View File
@@ -24,7 +24,7 @@ COPY --from=builder /app/messages ./messages
EXPOSE 3000 EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD wget -q --spider http://localhost:3000/ || exit 1 CMD node -e "require('http').get('http://localhost:3000', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"
CMD ["node_modules/.bin/next", "start", "-H", "0.0.0.0", "-p", "3000"] CMD ["node_modules/.bin/next", "start", "-H", "0.0.0.0", "-p", "3000"]