feat(deploy): add healthchecks to docker, docker compose, podman quadlet, and helm chart (#1137)
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user