mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-09 11:47:25 +08:00
Fix healthcheck to netcat to actual IP
This commit is contained in:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user