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 - postgres_backup_dev:/backups
environment: environment:
- POSTGRES_USER={{cookiecutter.project_slug}} - POSTGRES_USER={{cookiecutter.project_slug}}
{% if cookiecutter.use_docker == 'y' %} {% if cookiecutter.use_docker == 'y' and cookiecutter.use_mailhog == 'y' %}
mailhog: mailhog:
image: mailhog/mailhog image: mailhog/mailhog
ports: ports:
@ -33,7 +33,7 @@ services:
- "8000:8000" - "8000:8000"
links: links:
- postgres - 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' %} {% if cookiecutter.use_pycharm == 'y' %}
pycharm: pycharm:
build: build: