From c704c958b5b106a944154155a857460e88e4d996 Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschiffe@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:27:25 +0100 Subject: [PATCH] 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 --- pdns-admin/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns-admin/Dockerfile b/pdns-admin/Dockerfile index 9b629b7..77a6485 100644 --- a/pdns-admin/Dockerfile +++ b/pdns-admin/Dockerfile @@ -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" ]