ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

Possible to turn on/off group of containers based on a compose file ? #135

Closed amitn322 closed 1 month ago

amitn322 commented 8 months ago

Is it possible to turn on/off a group of containers based on a docker-compose.yml ?

For example if I have three dockers as a part of an application that are started/stopped by a single docker-compose.yml , can I make a single switch to turn on/off or would it require separate switches ?

Thank You,

ualex73 commented 1 month ago

Not really, the information is not easily exposed and then still ... it becomes tricky, I would recommend you make it a separate trigger with multiple actions (e.g. 3 restarts, in the order you like).