How to setup PyCharm for Docker inside Vagrant? -
i've project that's running docker in vagrant.
the python interpreter inside docker containter.
how set pycharm can use interpreter.
the dockerfile is:
from python:3.5.1-onbuild
the docker-compose.yaml following:
web: restart: 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: image: postgres:latest volumes_from: - data ports: - "5432:5432"
i tried standard options seems can choose either docker or vagrant: docker or vagrant
thanks
docker-compose support added last version of pycharm. here's how solve issue, using latest version of pycharm.
configure pycharm interpreter docker-compose inside vagrant
Comments
Post a Comment