Skip to content

Commit

Permalink
pdns-admin: skip caddy during healthcheck
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pschiffe committed Jan 25, 2024
1 parent 09edf0c commit c704c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand Down

0 comments on commit c704c95

Please sign in to comment.