feat(docker): healthcheck (#166)

This commit is contained in:
JuniorJPDJ 2021-09-16 22:35:38 +02:00 committed by GitHub
parent 03ced00f63
commit 04120323a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,4 +47,5 @@ RUN python manage.py collectstatic --noinput && \
# Launch
USER appuser
EXPOSE 8080
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%,*}" "http://127.0.0.1:$PORT/healthz/?format=json"'
CMD [ "./entrypoint.sh" ]