mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Use msmtpd SMTP relay
This commit is contained in:
parent
155262e0d5
commit
721ce2815c
10 changed files with 60 additions and 51 deletions
|
|
@ -3,8 +3,8 @@
|
|||
<p align="center">
|
||||
<a href="https://hub.docker.com/r/librenms/librenms/tags?page=1&ordering=last_updated"><img src="https://img.shields.io/github/v/tag/librenms/docker?label=version&style=flat-square" alt="Latest Version"></a>
|
||||
<a href="https://github.com/librenms/docker/actions?workflow=build"><img src="https://img.shields.io/github/workflow/status/librenms/docker/build?label=build&logo=github&style=flat-square" alt="Build Status"></a>
|
||||
<a href="https://hub.docker.com/r/librenms/librenms/"><img src="https://img.shields.io/docker/stars/librenms/librenms.svg?style=flat-square" alt="Docker Stars"></a>
|
||||
<a href="https://hub.docker.com/r/librenms/librenms/"><img src="https://img.shields.io/docker/pulls/librenms/librenms.svg?style=flat-square" alt="Docker Pulls"></a>
|
||||
<a href="https://hub.docker.com/r/librenms/librenms/"><img src="https://img.shields.io/docker/stars/librenms/librenms.svg?style=flat-square&logo=docker" alt="Docker Stars"></a>
|
||||
<a href="https://hub.docker.com/r/librenms/librenms/"><img src="https://img.shields.io/docker/pulls/librenms/librenms.svg?style=flat-square&logo=docker" alt="Docker Pulls"></a>
|
||||
<br /><a href="https://github.com/sponsors/crazy-max"><img src="https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github&style=flat-square" alt="Become a sponsor"></a>
|
||||
<a href="https://www.paypal.me/crazyws"><img src="https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal&style=flat-square" alt="Donate Paypal"></a>
|
||||
</p>
|
||||
|
|
@ -32,7 +32,7 @@ It's a fork of [CrazyMax's LibreNMS Docker image repository](https://github.com/
|
|||
* [Traefik](https://github.com/containous/traefik-library-image) as reverse proxy and creation/renewal of Let's Encrypt certificates (see [this template](examples/traefik))
|
||||
* [Memcached](https://github.com/docker-library/memcached) image ready to use for better scalability
|
||||
* [RRDcached](https://github.com/crazy-max/docker-rrdcached) image ready to use for data caching and graphs
|
||||
* [Postfix SMTP relay](https://github.com/juanluisbaptiste/docker-postfix) image to send emails
|
||||
* [msmtpd SMTP relay](https://github.com/crazy-max/docker-msmtpd) image to send emails
|
||||
* [MariaDB](https://github.com/docker-library/mariadb) image as database instance
|
||||
|
||||
## Documentation
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
||||
SMTP_SERVER=smtp.example.com
|
||||
SMTP_USERNAME=smtp@example.com
|
||||
SMTP_PASSWORD=
|
||||
|
||||
TZ=Europe/Paris
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
|
||||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
|
|
|||
|
|
@ -45,14 +45,11 @@ services:
|
|||
- "FLUSH_DEAD_DATA_INTERVAL=3600"
|
||||
restart: always
|
||||
|
||||
smtp:
|
||||
image: juanluisbaptiste/postfix
|
||||
container_name: librenms_smtp
|
||||
environment:
|
||||
- "SERVER_HOSTNAME=librenms.example.com"
|
||||
- "SMTP_SERVER=${SMTP_SERVER}"
|
||||
- "SMTP_USERNAME=${SMTP_USERNAME}"
|
||||
- "SMTP_PASSWORD=${SMTP_PASSWORD}"
|
||||
msmtpd:
|
||||
image: crazymax/msmtpd:latest
|
||||
container_name: librenms_msmtpd
|
||||
env_file:
|
||||
- "./msmtpd.env"
|
||||
restart: always
|
||||
|
||||
librenms:
|
||||
|
|
|
|||
10
examples/compose-legacy/msmtpd.env
Normal file
10
examples/compose-legacy/msmtpd.env
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# https://github.com/crazy-max/docker-msmtpd
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_TLS=on
|
||||
SMTP_STARTTLS=on
|
||||
SMTP_TLS_CHECKCERT=on
|
||||
SMTP_AUTH=on
|
||||
SMTP_USER=foo
|
||||
SMTP_PASSWORD=bar
|
||||
SMTP_FROM=foo@gmail.com
|
||||
|
|
@ -1,11 +1,7 @@
|
|||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
||||
SMTP_SERVER=smtp.example.com
|
||||
SMTP_USERNAME=smtp@example.com
|
||||
SMTP_PASSWORD=
|
||||
|
||||
TZ=Europe/Paris
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
|
||||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
|
|
|||
|
|
@ -52,14 +52,11 @@ services:
|
|||
- "FLUSH_DEAD_DATA_INTERVAL=3600"
|
||||
restart: always
|
||||
|
||||
smtp:
|
||||
image: juanluisbaptiste/postfix
|
||||
container_name: librenms_smtp
|
||||
environment:
|
||||
- "SERVER_HOSTNAME=librenms.example.com"
|
||||
- "SMTP_SERVER=${SMTP_SERVER}"
|
||||
- "SMTP_USERNAME=${SMTP_USERNAME}"
|
||||
- "SMTP_PASSWORD=${SMTP_PASSWORD}"
|
||||
msmtpd:
|
||||
image: crazymax/msmtpd:latest
|
||||
container_name: librenms_msmtpd
|
||||
env_file:
|
||||
- "./msmtpd.env"
|
||||
restart: always
|
||||
|
||||
librenms:
|
||||
|
|
|
|||
10
examples/compose/msmtpd.env
Normal file
10
examples/compose/msmtpd.env
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# https://github.com/crazy-max/docker-msmtpd
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_TLS=on
|
||||
SMTP_STARTTLS=on
|
||||
SMTP_TLS_CHECKCERT=on
|
||||
SMTP_AUTH=on
|
||||
SMTP_USER=foo
|
||||
SMTP_PASSWORD=bar
|
||||
SMTP_FROM=foo@gmail.com
|
||||
|
|
@ -1,11 +1,7 @@
|
|||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
||||
SMTP_SERVER=smtp.example.com
|
||||
SMTP_USERNAME=smtp@example.com
|
||||
SMTP_PASSWORD=
|
||||
|
||||
TZ=Europe/Paris
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
|
||||
MYSQL_DATABASE=librenms
|
||||
MYSQL_USER=librenms
|
||||
MYSQL_PASSWORD=asupersecretpassword
|
||||
|
|
|
|||
|
|
@ -83,14 +83,11 @@ services:
|
|||
- "FLUSH_DEAD_DATA_INTERVAL=3600"
|
||||
restart: always
|
||||
|
||||
smtp:
|
||||
image: juanluisbaptiste/postfix
|
||||
container_name: librenms_smtp
|
||||
environment:
|
||||
- "SERVER_HOSTNAME=librenms.example.com"
|
||||
- "SMTP_SERVER=${SMTP_SERVER}"
|
||||
- "SMTP_USERNAME=${SMTP_USERNAME}"
|
||||
- "SMTP_PASSWORD=${SMTP_PASSWORD}"
|
||||
msmtpd:
|
||||
image: crazymax/msmtpd:latest
|
||||
container_name: librenms_msmtpd
|
||||
env_file:
|
||||
- "./msmtpd.env"
|
||||
restart: always
|
||||
|
||||
librenms:
|
||||
|
|
|
|||
10
examples/traefik/msmtpd.env
Normal file
10
examples/traefik/msmtpd.env
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# https://github.com/crazy-max/docker-msmtpd
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_TLS=on
|
||||
SMTP_STARTTLS=on
|
||||
SMTP_TLS_CHECKCERT=on
|
||||
SMTP_AUTH=on
|
||||
SMTP_USER=foo
|
||||
SMTP_PASSWORD=bar
|
||||
SMTP_FROM=foo@gmail.com
|
||||
Loading…
Add table
Add a link
Reference in a new issue