1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-23 13:47:12 +00:00

[Unbound] Added Healthcheck (nslookup)

This commit is contained in:
DerLinkman
2023-10-11 15:48:25 +02:00
parent 1fda71e4fa
commit eb3be80286
2 changed files with 17 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ EXPOSE 53/udp 53/tcp
COPY docker-entrypoint.sh /docker-entrypoint.sh
# healthcheck (nslookup)
COPY healthcheck.sh /healthcheck.sh
RUN chmod +x /healthcheck.sh
HEALTHCHECK --interval=30s --timeout=10s CMD [ "/healthcheck.sh" ]
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/unbound"]