Modify: HEALTHCHECK better use in docker-compose.yaml like optional

This commit is contained in:
2023-09-16 18:02:11 +09:00
parent c316104d94
commit 405d7da754
2 changed files with 7 additions and 5 deletions

View File

@@ -29,8 +29,7 @@ ARG VERSION=0.1.0 \
USER_NAME=collector \
USER_GROUP=collector \
APP_UID=1000 \
APP_GID=1000 \
HEALTHCHECK_PATH=api/v1/check/health/
APP_GID=1000
# copy app dependences
COPY --from=base /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages/
@@ -61,8 +60,5 @@ EXPOSE ${WEB_PORT}
LABEL maintainer="s.zhukovskii@ispsystem.com"
LABEL me.zhukovsky.logs-collector.version=v${VERSION}
# call the health check endpoint of app
HEALTHCHECK CMD curl --fail http://localhost:${WEB_PORT}/${HEALTHCHECK_PATH} || exit 1
# run app
ENTRYPOINT [ "sh", "entrypoint.sh" ]