Skip to content

Commit bc07fc7

Browse files
committed
Added healthcheck
1 parent 8b08577 commit bc07fc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ ENV CERTBOT_DOMAINS="" \
1010

1111
COPY --chmod=700 entrypoint.sh /entrypoint.sh
1212

13-
ENTRYPOINT ["/entrypoint.sh"]
13+
ENTRYPOINT ["/entrypoint.sh"]
14+
15+
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
16+
CMD [ -f "/etc/letsencrypt/live/$(echo "$CERTBOT_DOMAINS" | cut -d',' -f1)/fullchain.pem" ]

0 commit comments

Comments
 (0)