Skip to content

Commit

Permalink
healthcheck at startup (#88)
Browse files Browse the repository at this point in the history
* healthcheck at startup

delay the first healthcheck command for 90 secs.

* Update ebusd/Dockerfile

---------

Co-authored-by: Jorim Tielemans <[email protected]>
  • Loading branch information
cociweb and tjorim authored Dec 11, 2023
1 parent f2671f9 commit b590fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebusd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ RUN chmod a+x /run.sh
CMD [ "/run.sh" ]

# Health check
HEALTHCHECK --interval=5m --timeout=3s \
HEALTHCHECK --interval=5m --timeout=3s --start-period=90s \
CMD nc -z localhost 8888 || exit 1

0 comments on commit b590fde

Please sign in to comment.