mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 14:04:52 +03:00
Fix jinja linebreaks in local.yml
This commit is contained in:
parent
0cb3bd202a
commit
56948fdbdc
|
@ -10,8 +10,10 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./compose/local/django/Dockerfile
|
dockerfile: ./compose/local/django/Dockerfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres{% if cookiecutter.use_mailhog == 'y' %}
|
- postgres
|
||||||
- mailhog{% endif %}
|
{% if cookiecutter.use_mailhog == 'y' -%}
|
||||||
|
- mailhog
|
||||||
|
{%- endif %}
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -30,13 +32,12 @@ services:
|
||||||
- postgres_backup_local:/backups
|
- postgres_backup_local:/backups
|
||||||
env_file:
|
env_file:
|
||||||
- ./.envs/.local/.postgres
|
- ./.envs/.local/.postgres
|
||||||
{% if cookiecutter.use_mailhog == 'y' %}
|
{% if cookiecutter.use_mailhog == 'y' %}
|
||||||
mailhog:
|
mailhog:
|
||||||
image: mailhog/mailhog:v1.0.0
|
image: mailhog/mailhog:v1.0.0
|
||||||
ports:
|
ports:
|
||||||
- "8025:8025"
|
- "8025:8025"
|
||||||
{% endif %}
|
{% endif %}{% if cookiecutter.use_celery == 'y' %}
|
||||||
{% if cookiecutter.use_celery == 'y' %}
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:3.0
|
image: redis:3.0
|
||||||
|
|
||||||
|
@ -44,8 +45,10 @@ services:
|
||||||
<<: *django
|
<<: *django
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- postgres{% if cookiecutter.use_mailhog == 'y' %}
|
- postgres
|
||||||
- mailhog{% endif %}
|
{% if cookiecutter.use_mailhog == 'y' -%}
|
||||||
|
- mailhog
|
||||||
|
{%- endif %}
|
||||||
ports: []
|
ports: []
|
||||||
command: /start-celeryworker.sh
|
command: /start-celeryworker.sh
|
||||||
|
|
||||||
|
@ -53,8 +56,10 @@ services:
|
||||||
<<: *django
|
<<: *django
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- postgres{% if cookiecutter.use_mailhog == 'y' %}
|
- postgres
|
||||||
- mailhog{% endif %}
|
{% if cookiecutter.use_mailhog == 'y' -%}
|
||||||
|
- mailhog
|
||||||
|
{%- endif %}
|
||||||
ports: []
|
ports: []
|
||||||
command: /start-celerybeat.sh
|
command: /start-celerybeat.sh
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user