-2

I have nodjes and python service in single module both are independent.. I need to docker it such that one service will run as foreground and other as background. How to achieve this

s.k Syed
  • 27
  • 3
  • What have you tried so far? – Steve Jun 02 '22 at 05:18
  • 1
    It is a bad design to create a docker image that has 2 runtime processes (and especially 2 from different frameworks) – Clifford Cheefoon Jun 02 '22 at 05:44
  • Please check this stack overflow issue (https://stackoverflow.com/questions/19948149/can-i-run-multiple-programs-in-a-docker-container). It was already answered there. But generally, as @CliffordCheefoon mentioned it is against best practices/designs to go with such an approach. But in case you can't avoid it use a tool which helps you run/manage multiple processes like supervisord to help you achieve such thing. – matic1123 Jun 02 '22 at 06:19

0 Answers0