title: Run multiple docker compose
body: <p>I am using an application which runs on 3 different docker images:</p>
  <ul>
  <li>The first one is the server HTTP callable with a REST API</li>
  <li>The second one is rabbitmq</li>
  <li>The third one is a worker</li>
  </ul>
  <p>The whole application is launched with <code>docker-compose up</code></p>
  <p>Really simple :)</p>
  <p>I would like to make it scalable and run multiple instances of this entire application (the 3 docker images) independently of the others, and then put a load balancer like <code>haproxy</code> which will redirect to one of the applications.</p>
  <p>I saw that I can use <code>docker-compose up --scale blablabla</code> however the problem with this is that I can scale containers, but I really want to keep the different &quot;applications&quot; independent.</p>
  <p>For example if I want 3 versions of the app I will have 9 docker images etc.</p>
  <p>I saw that we can run docker inside docker with <code>--privilege</code> (allowing me to create one docker with the 3 dockers inside) but I read on Stack Overflow that it is not a suitable solution.</p>
  <p>Do you have a solution? Or at least some documents to read.</p>
  <p>I heard that Kubernetes could be a solution but I am not sure. I read (on Stack):</p>
  <blockquote>
  <p>If you need multiple containers tightly bound, you may want to look at Kubernetes that runs docker inside their &quot;pods&quot;</p>
  </blockquote>