Better healthcheck (#169), fixes #133

* Changed healthcheck to get and compare IP address
* Change default healthcheck frequency and retries
This commit is contained in:
Quentin McGaw
2020-06-03 21:52:44 -04:00
committed by GitHub
parent cfb4dd84bc
commit 900fa261d8
2 changed files with 41 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ ENV VPNSP=pia \
SHADOWSOCKS_METHOD=chacha20-ietf-poly1305
ENTRYPOINT /entrypoint
EXPOSE 8000/tcp 8888/tcp 8388/tcp 8388/udp
HEALTHCHECK --interval=3m --timeout=3s --start-period=20s --retries=1 CMD /entrypoint healthcheck
HEALTHCHECK --interval=10m --timeout=10s --start-period=30s --retries=2 CMD /entrypoint healthcheck
RUN apk add -q --progress --no-cache --update openvpn ca-certificates iptables ip6tables unbound tinyproxy tzdata && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk add -q --progress --no-cache --update shadowsocks-libev && \