Skip to content

Commit 49e1018

Browse files
authored
Merge pull request #22 from kenjis/add-docker-mailhog
feat: add MailHog to docker-compose.yaml
2 parents 94f0c76 + 12edf02 commit 49e1018

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/docker/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- PostgreSQL 13
66
- SQL Server 2019
77
- MySQL 5.7
8+
- MailHog
89

910
## Usage
1011

@@ -65,3 +66,17 @@ database.default.password = mysql
6566
database.default.DBDriver = MySQLi
6667
database.default.port = 3306
6768
```
69+
70+
### MailHog
71+
72+
#### .env
73+
74+
```
75+
email.protocol = smtp
76+
email.SMTPHost = localhost
77+
email.SMTPPort = 1025
78+
email.SMTPCrypto =
79+
email.fromEmail = [email protected]
80+
```
81+
82+
Navigate to http://localhost:8025/ to see sent mails.

src/docker/docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ services:
2828
MYSQL_DATABASE: test
2929
MYSQL_USER: mysql
3030
MYSQL_PASSWORD: mysql
31+
32+
mailhog:
33+
image: mailhog/mailhog
34+
ports:
35+
- 1025:1025
36+
- 8025:8025

0 commit comments

Comments
 (0)