Compare commits

..

2 Commits

4 changed files with 9 additions and 7 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" ]

View File

@@ -27,6 +27,12 @@ services:
target: ${APP_DIR}/data
env_file:
- ./.env
healthcheck:
test: ["CMD", "curl", "-f", "http://${WEB_HOST}:${WEB_PORT}/${HEALTHCHECK_URL}"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
logs_collector_data:

View File

@@ -7,4 +7,4 @@ __license__ = "GPL v3.0"
__version__ = "0.1.0"
__maintainer__ = "Stepan Zhukovsky"
__email__ = "stepan@zhukovsky.me"
__status__ = "Development"
__status__ = "Production"

View File

@@ -26,4 +26,4 @@ __license__ = "GPL v3.0"
__version__ = "0.1.0"
__maintainer__ = "Stepan Zhukovsky"
__email__ = "stepan@zhukovsky.me"
__status__ = "Development"
__status__ = "Production"