Add healthchecks

This commit is contained in:
Peter Schiffer 2024-01-03 22:28:50 +01:00
parent de28ddd0d8
commit f9da1c64b1
No known key found for this signature in database
GPG Key ID: F2A18AC34A008397
9 changed files with 23 additions and 0 deletions

View File

@ -96,6 +96,10 @@
- '8888:80'
volumes:
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ['CMD', 'curl', '-fsSL', 'http://127.0.0.1:80']
timeout: 10s
retries: 5
tags:
- db

View File

@ -38,6 +38,10 @@ services:
- '8988:80'
volumes:
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ['CMD', 'curl', '-fsSL', 'http://127.0.0.1:80']
timeout: 10s
retries: 5
pdns-mysql-master:
image: pschiffe/pdns-mysql:${PDNS_MYSQL_TAG:-latest}

View File

@ -68,6 +68,9 @@ 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"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]

View File

@ -23,6 +23,8 @@ ENV VERSION=4.8 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_server" ]

View File

@ -22,6 +22,8 @@ ENV VERSION=4.8 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_server" ]

View File

@ -23,6 +23,8 @@ ENV VERSION=4.8 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_server" ]

View File

@ -22,6 +22,8 @@ ENV VERSION=4.8 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["pdns_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_server" ]

View File

@ -22,6 +22,8 @@ ENV VERSION=4.9 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["rec_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_recursor" ]

View File

@ -20,6 +20,8 @@ ENV VERSION=4.9 \
EXPOSE 53 53/udp
HEALTHCHECK --interval=10s --timeout=10s --retries=3 --start-period=2s CMD ["rec_control", "ping"]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "/usr/sbin/pdns_recursor" ]