Files
docker-compose/netdata/Dockerfile
Sebastian Krüger 7b2c202acc feat: add msmtp to Netdata for email alerts
Created custom Dockerfile for Netdata container that includes msmtp
and msmtp-mta packages for sending email notifications.

Changes:
- Added netdata/Dockerfile extending netdata/netdata:latest
- Installed msmtp, msmtp-mta, and ca-certificates via apk
- Set proper permissions (600) for msmtprc config file
- Updated compose.yaml to build from custom Dockerfile

This enables Netdata to send health alarm notifications via email
using the IONOS SMTP configuration in msmtprc.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 19:27:06 +01:00

9 lines
258 B
Docker

# Dockerfile for Netdata with msmtp support for email alerts
FROM netdata/netdata:latest
# Install msmtp for sending emails
RUN apk add --no-cache msmtp msmtp-mta ca-certificates
# Set proper permissions for msmtp config
RUN chmod 600 /etc/msmtprc || true