Can you share an example of how this could be done. I’m using docker compose, and I have a command that I want to run for LIRC, and I’m having major issues getting keypairs working.
I took a simple approach on this - created a directory on the docker server with shell scripts in, pulled from source control, then I bind mount that directory into the HA docker on startup.
I ended up running all my scripts outside of the docker and communicate with HA via MQTT.
One of the main reasons was that there were several python libraries that are not in the HA docker and I did not want to mess about with it.
In addition for some reason some of my python scripts run on 2.7 and don’t work on python3 and back then I did not have the time to update the code to make it python 3 compatible…