mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-01 02:39:48 +03:00
add mailhog container for local development
This commit is contained in:
parent
bd9e437717
commit
563239a2cb
|
@ -13,6 +13,13 @@ services:
|
|||
environment:
|
||||
- POSTGRES_USER={{cookiecutter.project_slug}}
|
||||
|
||||
{% if cookiecutter.use_docker == 'y' %}
|
||||
mailhog:
|
||||
image: mailhog/mailhog
|
||||
ports:
|
||||
- "8025:8025"
|
||||
{% endif %}
|
||||
|
||||
django:
|
||||
build:
|
||||
context: .
|
||||
|
@ -28,6 +35,10 @@ services:
|
|||
- "8000:8000"
|
||||
links:
|
||||
- postgres
|
||||
{% if cookiecutter.use_docker == 'y' %}
|
||||
- mailhog
|
||||
{% endif %}
|
||||
|
||||
{% if cookiecutter.use_pycharm == 'y' %}
|
||||
pycharm:
|
||||
build:
|
||||
|
|
Loading…
Reference in New Issue
Block a user