I have one container hosting a web application and 2nd container communicating with an external board (wiringPi). Is there a way I can run scripts on the 2nd container from some php in the first container? I want to query voltage and change some settings on the external board from the web interface.
I can’t work out how I might go about achieving communication between the two. On stack overflow (r.e. docker) there is some discussion about installing openSSH onto the 2nd container and ssh’ing into this from the first container, is that a sensible route and do you have any examples of this approach? Alternatively I could combine all elements into one container but it will be a lot of installation steps and a big image for the one container.
Thanks for your help,