Reference the newly created .envs/**/.* files in local.yml

This commit is contained in:
Nikita P. Shupeyko 2017-08-24 19:25:03 +03:00
parent f8dc065a84
commit d7f0488ddf

View File

@ -14,9 +14,9 @@ services:
- mailhog{% endif %} - mailhog{% endif %}
volumes: volumes:
- .:/app - .:/app
environment: env_file:
- POSTGRES_USER={{cookiecutter.project_slug}} - ./.envs/.local/.django
- USE_DOCKER=yes - ./.envs/.local/.postgres
ports: ports:
- "8000:8000" - "8000:8000"
command: /start-dev.sh command: /start-dev.sh
@ -26,8 +26,8 @@ services:
volumes: volumes:
- postgres_data_dev:/var/lib/postgresql/data - postgres_data_dev:/var/lib/postgresql/data
- postgres_backup_dev:/backups - postgres_backup_dev:/backups
environment: env_file:
- POSTGRES_USER={{cookiecutter.project_slug}} - ./.envs/.local/.postgres
{% if cookiecutter.use_pycharm == 'y' %} {% if cookiecutter.use_pycharm == 'y' %}
pycharm: pycharm:
build: build:
@ -35,10 +35,11 @@ services:
dockerfile: ./compose/django/Dockerfile-dev dockerfile: ./compose/django/Dockerfile-dev
depends_on: depends_on:
- postgres - postgres
environment:
- POSTGRES_USER={{cookiecutter.project_slug}}
volumes: volumes:
- .:/app - .:/app
env_file:
- ./.env/.local/.django
- ./.env/.local/.postgres
{% endif %} {% endif %}
{% if cookiecutter.use_mailhog == 'y' %} {% if cookiecutter.use_mailhog == 'y' %}
mailhog: mailhog: