Add instructions for Docker Compose (#19331)
* Add instructions for Docker Compose * update link * add missing dot (.) * add changes to metadata.yaml * remove changes from README.md --------- Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
Daniel Hansson committed
Jan 8, 2025 at 12:42 UTC
4600e9815716217d9c8ce2bcf5c05f4c6175e717
2 files changed
+12
-1
src/health/notifications/email/README.md
-1
@@ -88,7 +88,6 @@ DEFAULT_RECIPIENT_EMAIL="recipient@example.com"
88
89
```
90
91
-
91
## Troubleshooting
92
93
### Test Notification
src/health/notifications/email/metadata.yaml
+12
@@ -20,6 +20,18 @@
20
description: |
21
- A working sendmail command is required for email alerts to work. Almost all MTAs provide a sendmail interface. Netdata sends all emails as user netdata, so make sure your sendmail works for local users.
22
- Access to the terminal where Netdata Agent is running
23
+ - When running Netdata with Docker Compose the emails are sent with `msmtp`, and you need a basic configuration for it to work.
24
+
25
+ - Add a [msmtprc](https://marlam.de/msmtp/msmtprc.txt) config file on your Docker root folder, and edit it according to your needs.
26
+ - Link it into your Netdata container with this:
27
+
28
+ ```yaml
29
+ volumes:
30
+ - /path/to/netdata-docker/msmtprc:/etc/msmtprc:ro
31
+ ```
32
+
33
+ - Update your container with `docker compose up -d`.
34
+
35
configuration:
36
file:
37
name: 'health_alarm_notify.conf'