title: Docker-compose and pdb
body: <p>I see that I'm not the first one to ask the question but there was no clear answer to this:  </p>
  
  <p>How to use pdb with docker-composer in Python development?  </p>
  
  <p>When you ask uncle Google about <code>django docker</code> you get awesome docker-composer examples and tutorials and I have an environment working - I can run <code>docker-compose up</code> and I have a neat developer environment <strong>but the PDB is not working</strong> (which is very sad).  </p>
  
  <p>I can settle with running <code>docker-compose run my-awesome-app python app.py 0.0.0.0:8000</code> but then I can access my application over <a href="http://127.0.0.1:8000" rel="noreferrer">http://127.0.0.1:8000</a> from the host (I can with <code>docker-compose up</code>) and it seems that each time I use <code>run</code> new containers are made like: <code>dir_app_13</code> and <code>dir_db_4</code> which I don't desire at all.  </p>
  
  <p>People of good will please aid me.</p>
  
  <p>PS<br>
  I'm using pdb++ for that example and a basic docker-compose.yml from <a href="https://docs.docker.com/compose/django/" rel="noreferrer">this django example</a>. Also I experimented but nothing seems to help me. And I'm using docker-composer <a href="https://github.com/docker/compose/tree/1.3.0rc3" rel="noreferrer">1.3.0rc3</a> as it has Dockerfile pointing support.</p>