标签:设置 容器 com must .com 参考 激活 variables 注意事项
做事前认真阅读下Readme文档,磨刀不误砍柴工To send email alerts, you must make BATCH_ENABLE=true and change the other mail-related environment variables (MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PROPERTIES_MAIL_SMTP_FROM, …) to the Pinpoint-Web server in .env file.
激活BATCH
[root@VM_8_77_centos pinpoint-docker]# grep BATCH_ENABLE .env
BATCH_ENABLE=true
按照实际情况填写
[root@VM_8_77_centos pinpoint-docker]# grep MAIL .env
MAIL_HOST=stmp.test.com
MAIL_PORT=123
MAIL_USERNAME=user
MAIL_PASSWORD=pass
MAIL_PROPERTIES_MAIL_TRANSPORT_PROTOCOL=smtp
MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
MAIL_PROPERTIES_MAIL_SMTP_PORT=587
MAIL_PROPERTIES_MAIL_SMTP_FROM=test@example.com
MAIL_PROPERTIES_MAIL_STARTTLS_ENABLE=true
MAIL_PROPERTIES_MAIL_STARTTLS_REQUIRED=true
MAIL_PROPERTIES_MAIL_DEBUG=false
[root@VM_8_77_centos pinpoint-docker]# docker-compose kill pinpoint-web
[root@VM_8_77_centos pinpoint-docker]# docker-compose rm pinpoint-web
[root@VM_8_77_centos pinpoint-docker]# docker-compose up -d
https://github.com/naver/pinpoint/blob/master/doc/alarm.md
docker-compose部署pinpoint开启email报警功能
标签:设置 容器 com must .com 参考 激活 variables 注意事项
原文地址:https://blog.51cto.com/jerrymin/2384160