Skip to content

Commit 51a00df

Browse files
committed
add a mailhog fake email server to docker-compose
1 parent 514b6a4 commit 51a00df

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ services:
1010
depends_on:
1111
- postgres
1212
- redis
13+
- mailhog
1314
environment:
1415
- DB_HOST=postgres
1516
- DB_PASSWORD=abc123
1617
- REDIS_HOST=redis
18+
- EMAIL_HOST=mailhog
1719
- PYTHONDONTWRITEBYTECODE=1
1820
volumes:
1921
- ./src:/src
@@ -26,11 +28,13 @@ services:
2628
image: allocation-image
2729
depends_on:
2830
- redis_pubsub
31+
- mailhog
2932
environment:
3033
- DB_HOST=postgres
3134
- DB_PASSWORD=abc123
3235
- API_HOST=api
3336
- REDIS_HOST=redis
37+
- EMAIL_HOST=mailhog
3438
- PYTHONDONTWRITEBYTECODE=1
3539
- FLASK_APP=allocation/entrypoints/flask_app.py
3640
- FLASK_DEBUG=1
@@ -59,3 +63,8 @@ services:
5963
ports:
6064
- "63791:6379"
6165

66+
mailhog:
67+
image: mailhog/mailhog
68+
ports:
69+
- "11025:1025"
70+
- "18025:8025"

0 commit comments

Comments
 (0)