Changed healthcheck to only ping 1.1.1.1 to check connectivity
This is because your VPN public IP might not be the VPN server entrance IP address, resulting in the container being unhealthy most of the time.
This commit is contained in:
9
healthcheck.sh
Normal file
9
healthcheck.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
ping -W 1 -w 1 -q -s 8 1.1.1.1 &> /dev/null
|
||||
status=$?
|
||||
if [ $status = 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
printf "Pinging 1.1.1.1 resulted in error status code $status"
|
||||
exit 1
|
||||
Reference in New Issue
Block a user