It would be nice if you could expose
- 1025:1025 # smtp server
by default in docker-compose.yml so that users easier see how to access smtp of Mailhog. It took me a while to figure it out. To anyone who has trouble configuring it: the hostname to connect to Mailhog is
host.docker.internal
and not "127.0.0.1" and the default port is 1025.