Skip to content

Commit

Permalink
COD-85 - added healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
addicola committed Jul 18, 2024
1 parent 5243310 commit 671f5fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ RUN apk --no-cache add ca-certificates
COPY --from=builder /app/proposal_monitor .
COPY --from=builder /app/config/config.yml ./config/config.yml

# Defind healthcheck
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD curl -f http://localhost/health || exit 1

EXPOSE 8080

# Run the compiled application
Expand Down

0 comments on commit 671f5fe

Please sign in to comment.