Skip to content

Commit

Permalink
Add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
pschiffe committed Jan 3, 2024
1 parent de28ddd commit f9da1c6
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible-playbook-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
3 changes: 3 additions & 0 deletions pdns-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-mysql/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-pgsql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-pgsql/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-recursor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions pdns-recursor/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit f9da1c6

Please sign in to comment.