mailhog-app
Purpose:
Image of the e-mail testing tool
Docker Compose service template:
mailhog:
logging:
options:
max-size: "10m"
max-file: "5"
restart: unless-stopped
stop_grace_period: 1m
container_name: mailhog
hostname: mailhog
expose:
- 8025/tcp
environment:
- MH_UI_WEB_PATH=mailhog
image: mailhog/mailhog
networks:
- app_network
Used variables:
MH_UI_WEB_PATH - web path for using mailhog behind the ecos-proxy proxy (mailhog)
Typical log output for successful deployment:
mailhog | [HTTP] Binding to address: 0.0.0.0:8025
mailhog | 2020/05/14 06:43:07 Using in-memory storage
mailhog | 2020/05/14 06:43:07 [SMTP] Binding to address: 0.0.0.0:1025
mailhog | 2020/05/14 06:43:07 Serving under http://0.0.0.0:8025/mailhog/
mailhog | Creating API v1 with WebPath: /mailhog
mailhog | Creating API v2 with WebPath: /mailhog