Open
Description
Hi, I running rootless podman with your container. Podman report me that the status is unhealthy.
podman create \
--label io.containers.autoupdate=registry \
--name speedtest \
--net lab \
--network-alias speedtest \
ghcr.io/miguelndecarvalho/speedtest-exporter:latest
After some investigating it seems that when i don't publish port to my "host" network it fail connecting to localhost
podman exec -it speedtest sh
/app $ wget localhost:9798
Connecting to localhost:9798 ([::1]:9798)
wget: can't connect to remote host: Connection refused
/app $ wget http://127.0.0.1:9798
Connecting to 127.0.0.1:9798 (127.0.0.1:9798)
saving to 'index.html'
index.html 100% |*****************************************************************| 88 0:00:00 ETA
'index.html' saved
So maybe healthcheck should check 127.0.0.1 instead of localhost?
Publishing port is not necessary, to access speedtest-exporter on the same container network