Skip to content

Commit

Permalink
Merge pull request #526 from jennydaman/healthcheck
Browse files Browse the repository at this point in the history
Add HEALTHCHECK
  • Loading branch information
jennydaman authored Sep 14, 2023
2 parents c5a98b4 + 83b7f5d commit 2a509d6
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 @@ -49,3 +49,6 @@ LABEL org.opencontainers.image.authors="FNNDSC <[email protected]>" \
org.opencontainers.image.documentation="https://github.com/FNNDSC/ChRIS_ultron_backEnd/wiki/" \
org.opencontainers.image.version="" \
org.opencontainers.image.licenses="MIT"

HEALTHCHECK --interval=30s --timeout=5s \
CMD curl -f http://localhost:8000/api/v1/users/ || exit 1

0 comments on commit 2a509d6

Please sign in to comment.