Skip to content

Commit

Permalink
Docker: Specify health check start period and interval
Browse files Browse the repository at this point in the history
To reach healthy state faster at startup.
  • Loading branch information
scop committed Feb 11, 2025
1 parent d0458e2 commit fed21bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ RUN apk upgrade --no-cache && apk add --no-cache tzdata

EXPOSE 1025/tcp 1110/tcp 8025/tcp

HEALTHCHECK --interval=15s CMD /mailpit readyz
HEALTHCHECK --interval=15s --start-period=10s --start-interval=1s CMD /mailpit readyz

ENTRYPOINT ["/mailpit"]

0 comments on commit fed21bc

Please sign in to comment.