pdns-admin: skip caddy during healthcheck

Caddy can be configured with self-signed SSL certificate, which can
cause problems for curl even with `-k` option. Checking uwsgi directly
makes sure the python app as well as database connection is working.

resolves: #125
This commit is contained in:
Peter Schiffer 2024-01-25 15:27:25 +01:00
parent 09edf0c36b
commit c704c958b5
No known key found for this signature in database
GPG key ID: F2A18AC34A008397

View file

@ -69,7 +69,7 @@ RUN yarn install --pure-lockfile --production \
EXPOSE 8080
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=6s \
CMD ["curl", "-fsSL", "http://127.0.0.1:8080"]
CMD ["curl", "-fsSLo", "/dev/null", "http://127.0.0.1:9494"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]