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
|
|
@ -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