Added healthcheck that checks if network is still up

This commit is contained in:
btimbermont
2019-02-14 09:19:14 +01:00
parent c98018f1aa
commit 0abe1912f4
2 changed files with 30 additions and 2 deletions

View File

@@ -34,11 +34,14 @@ RUN apt-get update \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& groupmod -g 1000 users \
&& useradd -u 911 -U -d /config -s /bin/false abc \
&& usermod -G users abc
&& usermod -G users abc \
ADD openvpn/ /etc/openvpn/
ADD transmission/ /etc/transmission/
ADD tinyproxy /opt/tinyproxy/
ADD scripts /etc/scripts/
RUN chmod a+x /etc/scripts/healthcheck.sh
ENV OPENVPN_USERNAME=**None** \
OPENVPN_PASSWORD=**None** \
@@ -129,7 +132,10 @@ ENV OPENVPN_USERNAME=**None** \
TRANSMISSION_WEB_HOME= \
DROP_DEFAULT_ROUTE= \
WEBPROXY_ENABLED=false \
WEBPROXY_PORT=8888
WEBPROXY_PORT=8888 \
HEALTH_CHECK_HOST=google.com
HEALTHCHECK --interval=5m CMD /etc/scripts/healthcheck.sh
# Expose port and run
EXPOSE 9091