https://github.com/kcofoni/swag-email
https://github.com/kcofoni/swag-email
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kcofoni/swag-email
- Owner: kcofoni
- Created: 2023-02-28T23:14:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T12:14:05.000Z (over 1 year ago)
- Last Synced: 2024-03-16T14:37:04.386Z (over 1 year ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swag-email
This piece of code aims at extending the [linuxserver/swag images](https://github.com/linuxserver/docker-swag) by providing the ability to send email. The `swag-email` docker image add [msmtp](https://wiki.debian.org/msmtp) package to the underlying [alpine OS](https://www.alpinelinux.org/) and the related configuration files, as well as the way to test sending email.
The ability to send email is particularly useful for [fail2ban](https://www.fail2ban.org/wiki/index.php/Main_Page) for notifying events.
It can be used in a compose file as described below:
---
version: "2.1"
services:
authelia:
image: authelia/authelia:latest
container_name: authelia
environment:
- TZ=Europe/Paris
volumes:
- /home/docker/appdata/authelia/config:/config
restart: unless-stopped
swag:
image: kcofoni/swag-mail
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- URL=
- VALIDATION=dns
- SUBDOMAINS=wildcard
- DNSPLUGIN=ovh
- PROPAGATION=30
- STAGING=false
- EMAIL=@
- DOCKER_MODS=linuxserver/mods:swag-dbip|linuxserver/mods:swag-dashboard
volumes:
- /home/docker/appdata/swag/config:/config
ports:
- 443:443
restart: unless-stoppedBefore using the docker file for creating the image, please replace the content of */etc/msmtprc* by your data (*account/host/port/from*). Your secret (*user/password*) should be stored in a *.env* file. Please also customize contents of */etc/aliases* and */root/tests/...* files.