Implement health check API and update health check commands in Docker and Docker Compose

This commit is contained in:
Arunavo Ray
2025-05-22 08:39:07 +05:30
parent 32ef9124a7
commit a15178d2cd
4 changed files with 205 additions and 2 deletions

View File

@@ -49,6 +49,6 @@ VOLUME /app/data
EXPOSE 4321
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:4321/ || exit 1
CMD wget --no-verbose --tries=1 --spider http://localhost:4321/api/health || exit 1
ENTRYPOINT ["./docker-entrypoint.sh"]