Skip to content

Commit

Permalink
Use Mailpit instead of the unmaintained Mailhog
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-mausch committed Sep 30, 2024
1 parent ac5f03c commit fc12e7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A [Grafana](https://grafana.com/oss/) setup to analyse logs from docker services
- [Loki](https://grafana.com/oss/loki/) for sending the logs
- [Prometheus](https://prometheus.io/) (with [cadvisor](https://github.com/google/cadvisor)) for docker container metrics
- [Alertmanager](https://prometheus.io/docs/alerting/latest/alertmanager/) for sending emails
- [Mailhog](https://github.com/mailhog/MailHog) as SMTP host
- [Mailpit](https://mailpit.axllent.org/) as SMTP host

Link to my Blog post:
[https://andreas-mausch.de/blog/2021-05-14-monitoring-grafana/](https://andreas-mausch.de/blog/2021-05-14-monitoring-grafana/)
Expand Down Expand Up @@ -45,7 +45,7 @@ After starting the services, these URLs become available:
- Grafana: [http://localhost:3000](http://localhost:3000)
- Prometheus: [http://localhost:9090/alerts](http://localhost:9090/alerts)
- Alertmanager: [http://localhost:9093/#/alerts](http://localhost:9093/#/alerts)
- Mailhog: [http://localhost:8025](http://localhost:8025)
- Mailpit: [http://localhost:8025](http://localhost:8025)

# Start example logging service

Expand All @@ -57,7 +57,7 @@ docker run -it --rm --name my-service --log-driver=loki --log-opt loki-url="http

After starting the service, you should see logs in grafana.

Stop the service, wait a few minutes, and you should see an alert email in mailhog.
Stop the service, wait a few minutes, and you should see an alert email in mailpit.

# Multiline

Expand Down
2 changes: 1 addition & 1 deletion alertmanager/alertmanager.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
global:
smtp_smarthost: 'mailhog:1025'
smtp_smarthost: 'mailpit:1025'
smtp_from: '[email protected]'
smtp_require_tls: false

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ services:
ports:
- "9093:9093"

mailhog:
image: mailhog/mailhog:v1.0.1
mailpit:
image: axllent/mailpit:v1.20.5
ports:
- "8025:8025"

Expand Down

0 comments on commit fc12e7f

Please sign in to comment.