Cookiecutter-django: PyCharm Configurations & Docker problem.

Created on 7 Jan 2017  路  1Comment  路  Source: pydanny/cookiecutter-django

Hello guys! I'm having a problems with getting to work PyCharm configurations for docker-composer.
Here is what I get when trying to run Docker Migrate from PyCharm configurations:
screenshot from 2017-01-08 00-31-47

I am not able to start the test as well:
screenshot from 2017-01-08 00-33-06

I am using default dev.yml config for docker-composer:

version: '2'

volumes:
  postgres_data_dev: {}
  postgres_backup_dev: {}

services:
  postgres:
    build: ./compose/postgres
    volumes:
      - postgres_data_dev:/var/lib/postgresql/data
      - postgres_backup_dev:/backups
    environment:
      - POSTGRES_USER=budger

  django:
    build:
      context: .
      dockerfile: ./compose/django/Dockerfile-dev
    command: /start-dev.sh
    depends_on:
      - postgres
    environment:
      - POSTGRES_USER=budger
      - USE_DOCKER=yes
    volumes:
      - .:/app
    ports:
      - "8000:8000"
    links:
      - postgres
      - mailhog

  pycharm:
    build:
      context: .
      dockerfile: ./compose/django/Dockerfile-dev
    depends_on:
      - postgres
    environment:
      - POSTGRES_USER=budger
    volumes:
      - .:/app
    links:
      - postgres



  mailhog:
    image: mailhog/mailhog
    ports:
      - "8025:8025"

Here is my interpreter settings (according to this doc):
screenshot from 2017-01-08 00-42-20
screenshot from 2017-01-08 00-42-44
screenshot from 2017-01-08 00-43-09

PyCharm version: 2016.3
OS: Ubuntu 16.04

I would really appreciate any help! Thanks!

Most helpful comment

Found the source of the problem.
Entrypoint is ignored by PyCharm 2016.3.2.
Ticket on Jetbrains bugtracker

Reverting PyCharm to 2016.2.3 makes everything work.

>All comments

Found the source of the problem.
Entrypoint is ignored by PyCharm 2016.3.2.
Ticket on Jetbrains bugtracker

Reverting PyCharm to 2016.2.3 makes everything work.

Was this page helpful?
0 / 5 - 0 ratings