Skip to content

Commit

Permalink
Add a HEALTHCECK
Browse files Browse the repository at this point in the history
The docker image would benefit from a health check
  • Loading branch information
amai2012 authored Dec 18, 2024
1 parent e895272 commit 4e75365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,6 @@ VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/opt/graphite/webapp/gra
STOPSIGNAL SIGHUP

ENTRYPOINT ["/entrypoint"]

HEALTHCHECK --interval=60s --start-interval=20s --timeout=3s \
CMD curl -f http://localhost/ || exit 1

0 comments on commit 4e75365

Please sign in to comment.