fix: added proper healthchecks for static services

This commit is contained in:
ITQ
2025-05-08 17:53:52 +03:00
parent bb535387a6
commit 3ae82b1b39
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -26,4 +26,7 @@ COPY --from=builder /app/static /usr/share/nginx/html
COPY ../checker/checker_requirements.txt /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --start-interval=2s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:80/ || exit 1
CMD [ "nginx", "-g", "daemon off;" ]