How to setup PyCharm for Docker inside Vagrant?
<p>I've a project that's running Docker in Vagrant.</p>

<p>The python interpreter is inside the Docker containter.</p>

<p>How do I set up PyCharm so that it can use this interpreter.</p>

<p>The Dockerfile is:</p>

<pre><code>FROM python:3.5.1-onbuild
</code></pre>

<p>The docker-compose.yaml is the following:</p>

<pre><code>web:
  restart: always
  build: .
  ports: 
    - "80:80"
  expose:
    - "80"
  links:
    - postgres:postgres
  volumes:
    - .:/usr/src/app/
  env_file: .env
  command: /usr/local/bin/gunicorn --reload -w 2 -b :80  hello:app 

data:
  image: postgres:latest
  volumes:
    - /var/lib/postgresql
  command: "true"

postgres:
  restart: always
  image: postgres:latest
  volumes_from:
    - data
  ports:
    - "5432:5432"    
</code></pre>

<p>I already tried with the standard options but it seems that you only can choose either docker or vagrant:
<a href="http://i.stack.imgur.com/uNGD3.png" rel="nofollow">docker or vagrant</a></p>

<p>Thanks</p>