Extended time for healthcheck as it was failing from time to time
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -20,11 +20,11 @@ RUN apk add -q --progress --no-cache --update openvpn unbound ca-certificates &&
|
|||||||
apk del -q --progress --purge build-dependencies && \
|
apk del -q --progress --purge build-dependencies && \
|
||||||
rm -rf /*.zip /etc/unbound/unbound.conf /var/cache/apk/*
|
rm -rf /*.zip /etc/unbound/unbound.conf /var/cache/apk/*
|
||||||
COPY unbound.conf /etc/unbound/unbound.conf
|
COPY unbound.conf /etc/unbound/unbound.conf
|
||||||
HEALTHCHECK --interval=10m --timeout=5s --start-period=10s --retries=1 \
|
HEALTHCHECK --interval=10m --timeout=10s --start-period=10s --retries=2 \
|
||||||
CMD VPNCITY=$(wget -qO- -T 2 https://ipinfo.io/city); \
|
CMD VPNCITY=$(wget -qO- -T 2 https://ipinfo.io/city) && \
|
||||||
VPNORGANIZATION=$(wget -qO- -T 2 https://ipinfo.io/org); \
|
VPNORGANIZATION=$(wget -qO- -T 2 https://ipinfo.io/org) && \
|
||||||
printf "\nCity: $VPNCITY\nOrganization: $VPNORGANIZATION"; \
|
echo "City: $VPNCITY | Organization: $VPNORGANIZATION" && \
|
||||||
[ "$VPNCITY" != "$CITY" ] || [ "$VPNORGANIZATION" != "$ORGANIZATION" ] || exit 1
|
[ "$VPNCITY" != "$CITY" ] && [ "$VPNORGANIZATION" != "$ORGANIZATION" ] || exit 1
|
||||||
ENV ENCRYPTION=strong \
|
ENV ENCRYPTION=strong \
|
||||||
PROTOCOL=tcp \
|
PROTOCOL=tcp \
|
||||||
REGION=Germany
|
REGION=Germany
|
||||||
|
|||||||
Reference in New Issue
Block a user