refactor(dockerfile): change healthcheck periods

- reduce interval and increase start-period
- format for clarity
This commit is contained in:
Asif Bacchus 2021-07-25 15:04:22 -06:00
parent 7ea21e2cc4
commit 1c608859e7

View File

@ -29,7 +29,11 @@ RUN apk --no-cache add libcap \
&& mkdir /usr/share/nginx/letsencrypt && mkdir /usr/share/nginx/letsencrypt
# health check # health check
HEALTHCHECK --interval=60s --timeout=5s --start-period=30s --retries=3 \ HEALTHCHECK \
--interval=10s \
--timeout=5s \
--start-period=60s \
--retries=3 \
CMD curl --fail http://127.0.0.1:9000/nginx_status || exit 1 CMD curl --fail http://127.0.0.1:9000/nginx_status || exit 1
# standardized labels # standardized labels