Mail Catcher (MailHog)
Ajoutez un outil de test d'envoi d'e-mails dans votre environnement de développement avec MailHog.
Image Docker
Aucune configuration complexe : MailHog propose une image Docker officielle prête à l’emploi.
Docker run
Pour un lancement rapide sans Docker Compose :
docker run -d \
-p 1025:1025 \ # Port SMTP
-p 8025:8025 \ # Interface Web
--name mailhog \
mailhog/mailhog
SMTP : localhost:1025 Interface web : http://localhost:8025
Docker compose
compose.yml
services:
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
- "1025:1025" # Port SMTP
- "8025:8025" # Interface Web
Puis lancer :
docker compose up -d --build
Configuration SMTP
Host : localhost
Port : 1025
User : (aucun)
Pass : (aucun)