ha-dockermon
ha-dockermon copied to clipboard
docker swarm compatibility
I use docker-swarm for my home assistant stack and if I use ha-dockermon, it shows the containers (a lot of containers as swarm has stopped and started many).
It would be perfect if ha-dockermon could show me service states instead.
Interesting use case!
Are you able to provide the output of a GET request to a container? For example http://127.0.0.1:8126/container/home-assistant
I'll see if there's something I can use to denote that it is part of a swarm and instead show the service state.
Yes, here it is
curl http://127.0.0.1:8126/container/homeassistant_homeassistant.1.frfpzw7mailiwgg2vh8fwhbk7
{"state":"running","status":"Up About an hour (healthy)","image":"homeassistant/home-assistant:latest@sha256:62e066e1e9997fe3627a9e247d40fba0d197ed0bc34f2c025821f4c61b7989d0"}#