My docker-compose.yml is like:
can't find command 'nodejs'
Question: Can I actually run nodejs from supervisor-container or I must install supervisor in nodejs-container?
You must install supervisor in the image that holds nodejs, because supervisor needs to execute nodejs that means to have it as child process.
That is the common way. However, you can share the
pid namespace between two containers, but you will need to have nodejs installed in the same image too. So at that point, that is becoming tricky.