I want to have small, agent like apps on hosts to be able to remotely access their Docker sockets and deploy containers on them. I was thinking of having the main Phoenix app have a Websocket server open and the agents connecting to it (once configured with the right URL and join secret), advertising their presence, pinging, reporting metrics,etc. and the main app can send commands to deploy Docker payloads.
Are there WS client/server libs that facilitate this? Can an existing Phoenix facility be extended to achieve this goal?
Thanks for any pointers!