Add healthcheck to Dockerfiles for API and web services

This commit is contained in:
Georgiy Sitnikov committed 2026-08-14 11:28:09 +02:00
1 parent 528cb70a79
commit 011a3f7790
2 files changed
+13

No files matched your search

+5
View File
@@ -18,3 +18,8 @@ FROM nginx:alpine
COPY web/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
# exercise media (img/gif) is mounted at runtime from the media volume
HEALTHCHECK --interval=5m \
--timeout=5s \
--retries=3 \
CMD curl -fs http://localhost/