mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 21:44:52 +03:00
Reference the newly created .envs/**/.* files in local.yml
This commit is contained in:
parent
f8dc065a84
commit
d7f0488ddf
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user