docker-compose.yml
services:
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
- "1025:1025"
.env
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
MAILER_TRANSPORT=smtp
MAILER_HOST=mailhog
MAILER_PORT=1025
MAILER_COMMAND=/usr/local/bin/mhsendmail
MAILER_USER_NAME=
MAILER_PASSWORD=