Multiple Container with handbrake

Hello everyone,

on my homeserver i got multiple docker containers running which all use the handbrake software.

  1. Plex Media Server Container (DVR postprocessing on handbrake)
  2. Automated CD/DVD/BR Ripper (rips with handbrake)
  3. Automated Video Converter (converts with handbrake)

Worst case: All three container are using handbrake at the same time and slow down each other.

Now I would like to try to “outsource” handbrake in its own container with something like a queue.
So a command like handbrake-container --handbrake-options /path/to/file executed in those three container would let the handbrake container process the given file with the given options if the qeue allows it.

Is this even possible? And if, how?

Greets!