docker-cloudflared icon indicating copy to clipboard operation
docker-cloudflared copied to clipboard

Healthcheck issue when using TUNNEL_DNS_ADDRESS parameter

Open GJvdS opened this issue 2 years ago • 2 comments

When using the TUNNEL_DNS_ADDRESS parameter other than "0.0.0.0" the Healthcheck will report Unhealthy

For example: TUNNEL_DNS_ADDRESS=192.168.1.38

The Healthcheck command used is "dig +short @127.0.0.1 -p $TUNNEL_DNS_PORT cloudflare.com A || exit 1"

Changing it to "dig +short @$TUNNEL_DNS_ADDRESS -p $TUNNEL_DNS_PORT cloudflare.com A || exit 1" will solve this.

GJvdS avatar Nov 09 '22 10:11 GJvdS

Ahh is that why I keep seeing it be "Unhealthy" in Portainer? I have a weird issue with my raspberry pi stalls out ~ once per month. The only service I have running that is not healthy is this one.

ItsJamesMurray avatar Jan 12 '23 00:01 ItsJamesMurray

Ahh is that why I keep seeing it be "Unhealthy" in Portainer? I have a weird issue with my raspberry pi stalls out ~ once per month. The only service I have running that is not healthy is this one.

You have basically two options:

  • Don't use TUNNEL_DNS_ADDRESS
  • Run the container with --no-healthcheck or add

healthcheck: disable: true

to your compose file

GJvdS avatar Jan 13 '23 12:01 GJvdS