add mailhog container for local development

This commit is contained in:
shireenrao 2016-05-11 20:20:38 -04:00
parent bd9e437717
commit 563239a2cb

View File

@ -13,6 +13,13 @@ services:
environment: environment:
- POSTGRES_USER={{cookiecutter.project_slug}} - POSTGRES_USER={{cookiecutter.project_slug}}
{% if cookiecutter.use_docker == 'y' %}
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
{% endif %}
django: django:
build: build:
context: . context: .
@ -28,6 +35,10 @@ services:
- "8000:8000" - "8000:8000"
links: links:
- postgres - postgres
{% if cookiecutter.use_docker == 'y' %}
- mailhog
{% endif %}
{% if cookiecutter.use_pycharm == 'y' %} {% if cookiecutter.use_pycharm == 'y' %}
pycharm: pycharm:
build: build: