mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
Add healthchecks
This commit is contained in:
parent
de28ddd0d8
commit
f9da1c64b1
9 changed files with 23 additions and 0 deletions
|
@ -96,6 +96,10 @@
|
||||||
- '8888:80'
|
- '8888:80'
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'curl', '-fsSL', 'http://127.0.0.1:80']
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
tags:
|
tags:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,10 @@ services:
|
||||||
- '8988:80'
|
- '8988:80'
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'curl', '-fsSL', 'http://127.0.0.1:80']
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
pdns-mysql-master:
|
pdns-mysql-master:
|
||||||
image: pschiffe/pdns-mysql:${PDNS_MYSQL_TAG:-latest}
|
image: pschiffe/pdns-mysql:${PDNS_MYSQL_TAG:-latest}
|
||||||
|
|
|
@ -68,6 +68,9 @@ RUN yarn install --pure-lockfile --production \
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=6s \
|
||||||
|
CMD ["curl", "-fsSL", "http://127.0.0.1:8080"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|
||||||
|
|
|
@ -23,6 +23,8 @@ ENV VERSION=4.8 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_server" ]
|
CMD [ "/usr/sbin/pdns_server" ]
|
||||||
|
|
|
@ -22,6 +22,8 @@ ENV VERSION=4.8 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_server" ]
|
CMD [ "/usr/sbin/pdns_server" ]
|
||||||
|
|
|
@ -23,6 +23,8 @@ ENV VERSION=4.8 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_server" ]
|
CMD [ "/usr/sbin/pdns_server" ]
|
||||||
|
|
|
@ -22,6 +22,8 @@ ENV VERSION=4.8 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_server" ]
|
CMD [ "/usr/sbin/pdns_server" ]
|
||||||
|
|
|
@ -22,6 +22,8 @@ ENV VERSION=4.9 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["rec_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_recursor" ]
|
CMD [ "/usr/sbin/pdns_recursor" ]
|
||||||
|
|
|
@ -20,6 +20,8 @@ ENV VERSION=4.9 \
|
||||||
|
|
||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["rec_control", "ping"]
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
CMD [ "/usr/sbin/pdns_recursor" ]
|
CMD [ "/usr/sbin/pdns_recursor" ]
|
||||||
|
|
Loading…
Reference in a new issue