From 0c627e3505badf2f14e994499b3d7ee22bf9a1a4 Mon Sep 17 00:00:00 2001 From: Ivan Rezchikov Date: Fri, 18 Sep 2026 14:12:03 +0300 Subject: [PATCH] feat: new healthcheck --- fancy-frontend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fancy-frontend/Dockerfile b/fancy-frontend/Dockerfile index 25ca629..d2bd4df 100644 --- a/fancy-frontend/Dockerfile +++ b/fancy-frontend/Dockerfile @@ -24,7 +24,7 @@ COPY --from=builder /app/messages ./messages EXPOSE 3000 -HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD wget -q --spider http://localhost:3000/ || exit 1 +HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ + 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"] \ No newline at end of file