It works as espected thanks, I use it to monitor a raspberry pi, from an Home Assistant install on another raspberry pi on the same network.
But cause i actually learn docker i do a docker ls and find the container in status "unhealthy"
So let's check the issue with:
docker container inspect ha-monitor-api
"Start": "2022-07-16T22:23:47.79945216+01:00",
"End": "2022-07-16T22:23:48.8601395+01:00",
"ExitCode": 1,
"Output": "curl: (7) Failed to connect to 127.0.0.1 port 8123: Connection refused\n"
Ok so in docker-compose.yaml i find:
healthcheck:
test: curl -sS http://127.0.0.1:8123 || exit 1
And in the Dockerfile i find:
HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:9999 || exit 1
8123 is the usual port for Home Assistant. And in my case home assistant is on another system. Maybe i just need to modify the docker-compose.yaml?
It works as espected thanks, I use it to monitor a raspberry pi, from an Home Assistant install on another raspberry pi on the same network.
But cause i actually learn docker i do a docker ls and find the container in status "unhealthy"
So let's check the issue with:
docker container inspect ha-monitor-api
"Start": "2022-07-16T22:23:47.79945216+01:00",
"End": "2022-07-16T22:23:48.8601395+01:00",
"ExitCode": 1,
"Output": "curl: (7) Failed to connect to 127.0.0.1 port 8123: Connection refused\n"
Ok so in docker-compose.yaml i find:
healthcheck:
test: curl -sS http://127.0.0.1:8123 || exit 1
And in the Dockerfile i find:
HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:9999 || exit 1
8123 is the usual port for Home Assistant. And in my case home assistant is on another system. Maybe i just need to modify the docker-compose.yaml?