From 8ccfd41063597d7adc9ff4b1e364e892785e895b Mon Sep 17 00:00:00 2001 From: shireenrao Date: Wed, 11 May 2016 22:27:33 -0400 Subject: [PATCH] only use mailhog in docker if docker and mailhog is chosen in setup wizard --- {{cookiecutter.project_slug}}/dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/dev.yml b/{{cookiecutter.project_slug}}/dev.yml index 7982c079d..47073c977 100644 --- a/{{cookiecutter.project_slug}}/dev.yml +++ b/{{cookiecutter.project_slug}}/dev.yml @@ -12,7 +12,7 @@ services: - postgres_backup_dev:/backups environment: - POSTGRES_USER={{cookiecutter.project_slug}} -{% if cookiecutter.use_docker == 'y' %} +{% if cookiecutter.use_docker == 'y' and cookiecutter.use_mailhog == 'y' %} mailhog: image: mailhog/mailhog ports: @@ -33,7 +33,7 @@ services: - "8000:8000" links: - postgres - {% if cookiecutter.use_docker == 'y' %}- mailhog{% endif %} + {% if cookiecutter.use_docker == 'y' and cookiecutter.use_mailhog == 'y' %}- mailhog{% endif %} {% if cookiecutter.use_pycharm == 'y' %} pycharm: build: