Single button press to start or stop a Portainer docker stack
A Portainer stack (related group of Docker containers) can be started and stopped remotely with the literal push of a button on a Stream Deck. Or you could create a desktop icon that does the same thing. There are many ways to do this as long as a script file can be triggered by a button, icon, or even a Home Assistant automation.
I've found this very useful for Docker services that I don't want running 24/7, but I want to start them up quickly, do what I need to do, and stop them again. I also have two stacks that require a full restart after any container has been updated, and this is how I achieve that restart quickly (I use WUD instead of Portainer for my container updates).
The video shows how it works, what the script files look like, and also the steps required to set it up using Elgato Bitfocus for the Stream Deck. Any other Stream Deck software should be able to achieve the same thing.
Watch
https://www.youtube.com/watch?v=KLmvlTcul8g#
technology #
Portainer #
Docker #
streamdeck