title: Docker project structure with submodules
body: <p>I use microservices in my projects. Each microservice lives in it's own folder and it's own git repo.</p>
  
  <p>All services live in separate docker container. So overall project structure looks like this:</p>
  
  <pre><code>project_root/
               microservice1_folder -&gt; Dockerfile, .git, files ...
               microservice2_folder -&gt; Dockerfile, .git, files ...
               microservice3_folder -&gt; Dockerfile, .git, files ...
               docker-compose.yml
  </code></pre>
  
  <p>The problem is that <code>docker-compose.yml</code> isn't in any repo. There is no repo I could <code>git clone</code> and bring all services up with <code>docker-compose up -d</code>.</p>
  
  <p>One could suggest to use submodules but I see no way of integrating them into my workflow.</p>
  
  <p>With current setup I mount each microservice folder into docker, so I can make changes on the fly, commit and so on.</p>
  
  <p>How do I work with submodules?</p>