Fix HC interval

This commit is contained in:
TheSpad 2021-11-09 18:05:39 +00:00
parent 008143b1c4
commit e67f14c7d7
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ WORKDIR /home/py-kms
EXPOSE ${PORT}/tcp EXPOSE ${PORT}/tcp
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=4 CMD echo | nc -z localhost ${PORT} || exit 1 HEALTHCHECK --interval=5ms --timeout=3s --start-period=10s --retries=4 CMD echo | nc -z localhost ${PORT} || exit 1
ENTRYPOINT ["/usr/bin/python3", "-u","/usr/bin/entrypoint.py"] ENTRYPOINT ["/usr/bin/python3", "-u","/usr/bin/entrypoint.py"]
CMD ["/usr/bin/start.py"] CMD ["/usr/bin/start.py"]

View file

@ -57,7 +57,7 @@ WORKDIR /home/py-kms
EXPOSE ${PORT}/tcp EXPOSE ${PORT}/tcp
EXPOSE 8080 EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=4 CMD echo | nc -z localhost ${PORT} || exit 1 HEALTHCHECK --interval=5m --timeout=3s --start-period=10s --retries=4 CMD echo | nc -z localhost ${PORT} || exit 1
ENTRYPOINT [ "/usr/bin/python3","-u","/usr/bin/entrypoint.py" ] ENTRYPOINT [ "/usr/bin/python3","-u","/usr/bin/entrypoint.py" ]
CMD ["/usr/bin/start.py"] CMD ["/usr/bin/start.py"]