mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-16 16:14:50 -04:00
Merge pull request #62 from SoLoR1/patch-2
Fix docker healthcheck to netcat to actual IP
This commit is contained in:
commit
d892d81190
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ WORKDIR /home/py-kms
|
|||
|
||||
EXPOSE ${PORT}/tcp
|
||||
|
||||
HEALTHCHECK --interval=5m --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 ${IP%% *} ${PORT} || exit 1
|
||||
|
||||
ENTRYPOINT ["/usr/bin/python3", "-u","/usr/bin/entrypoint.py"]
|
||||
CMD ["/usr/bin/start.py"]
|
||||
|
|
|
@ -56,7 +56,7 @@ WORKDIR /home/py-kms
|
|||
EXPOSE ${PORT}/tcp
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=5m --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 ${IP%% *} ${PORT} || exit 1
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/python3","-u","/usr/bin/entrypoint.py" ]
|
||||
CMD ["/usr/bin/start.py"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue