only use mailhog in docker if docker and mailhog is chosen in setup wizard

This commit is contained in:
shireenrao 2016-05-11 22:27:33 -04:00
parent 89bf7f369b
commit 8ccfd41063

View File

@ -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: