From 56948fdbdc00e75102f9c4d46522097bf7cebe3c Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Tue, 6 Mar 2018 15:28:38 +0300 Subject: [PATCH] Fix jinja linebreaks in local.yml --- {{cookiecutter.project_slug}}/local.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/{{cookiecutter.project_slug}}/local.yml b/{{cookiecutter.project_slug}}/local.yml index 096dc62f9..8376c4a5a 100644 --- a/{{cookiecutter.project_slug}}/local.yml +++ b/{{cookiecutter.project_slug}}/local.yml @@ -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: @@ -30,13 +32,12 @@ services: - postgres_backup_local:/backups env_file: - ./.envs/.local/.postgres -{% if cookiecutter.use_mailhog == 'y' %} + {% if cookiecutter.use_mailhog == 'y' %} mailhog: 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 %} + {% endif %}