Fix jinja linebreaks in local.yml

This commit is contained in:
Nikita P. Shupeyko 2018-03-06 15:28:38 +03:00
parent 0cb3bd202a
commit 56948fdbdc

View File

@ -10,8 +10,10 @@ services:
context: .
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- postgres{% if cookiecutter.use_mailhog == 'y' %}
- mailhog{% endif %}
- postgres
{% if cookiecutter.use_mailhog == 'y' -%}
- mailhog
{%- endif %}
volumes:
- .:/app
env_file:
@ -35,8 +37,7 @@ services:
image: mailhog/mailhog:v1.0.0
ports:
- "8025:8025"
{% endif %}
{% if cookiecutter.use_celery == 'y' %}
{% endif %}{% if cookiecutter.use_celery == 'y' %}
redis:
image: redis:3.0
@ -44,8 +45,10 @@ services:
<<: *django
depends_on:
- redis
- postgres{% if cookiecutter.use_mailhog == 'y' %}
- mailhog{% endif %}
- postgres
{% if cookiecutter.use_mailhog == 'y' -%}
- mailhog
{%- endif %}
ports: []
command: /start-celeryworker.sh
@ -53,8 +56,10 @@ services:
<<: *django
depends_on:
- redis
- postgres{% if cookiecutter.use_mailhog == 'y' %}
- mailhog{% endif %}
- postgres
{% if cookiecutter.use_mailhog == 'y' -%}
- mailhog
{%- endif %}
ports: []
command: /start-celerybeat.sh
{% endif %}