mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 03:00:23 +03:00
add mailhog container for local development
This commit is contained in:
parent
bd9e437717
commit
563239a2cb
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user