feat(deploy): add healthchecks to docker, docker compose, podman quadlet, and helm chart (#1137)

This commit is contained in:
Thibault Martin
2026-05-07 20:50:53 -04:00
committed by GitHub
parent d792d32806
commit c665359205
5 changed files with 38 additions and 10 deletions
+4
View File
@@ -116,7 +116,11 @@ ENV APP_VERSION=${APP_VERSION} \
APP_REVISION=${APP_REVISION}
ARG BOOKLORE_PORT=6060
ENV BOOKLORE_PORT=${BOOKLORE_PORT}
EXPOSE ${BOOKLORE_PORT}
HEALTHCHECK --interval=60s --timeout=10s --start-period=60s --retries=5 \
CMD wget -q --spider http://localhost:${BOOKLORE_PORT}/api/v1/healthcheck
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["java", "--enable-native-access=ALL-UNNAMED", "--enable-preview", "-jar", "/app/app.jar"]