0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-03-14 20:32:51 +00:00

Add --start-period and --start-interval in Dockerfile

... to make the container go into a healthy state sooner.

cc: 
This commit is contained in:
Pēteris Caune 2024-12-22 18:11:16 +02:00
parent 2dd4994259
commit 279aed2080
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2

View file

@ -45,5 +45,5 @@ RUN mkdir /data && chown hc /data
USER hc
ENV USE_GZIP_MIDDLEWARE=True
HEALTHCHECK --interval=60s --retries=1 CMD ./fetchstatus.py
HEALTHCHECK --start-period=20s --start-interval=5s --interval=60s --retries=1 CMD ./fetchstatus.py
CMD [ "uwsgi", "/opt/healthchecks/docker/uwsgi.ini"]