I'm creating an application that will allow users to upload video files that will then be put through some processing.
I have two containers.
Nginx
container that serves the website where users can upload their video files.- Video processing container that has
FFmpeg
and some other processing stuff installed.
What I want to achieve. I need container 1 to be able to run a bash script on container 2.
One possibility as far as I can see is to make them communicate over HTTP via an API. But then I would need to install a web server in container 2 and write an API which seems a bit overkill. I just want to execute a bash script.
Any suggestions?
/var/run/docker.sock
and run docker commands from the container. – Surpass