Folder Watch Daemon (with e-Mail Notification)
- Go 97.6%
- Dockerfile 2.4%
|
All checks were successful
Build and Release / Build and Release (push) Successful in 2m41s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| .releaserc | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| mail.go | ||
| main.go | ||
| README.md | ||
| renovate.json | ||
| settings.go | ||
| watcher.go | ||
notify
Watch for file / folder changes and send a email notification.
Run notify
Environment Variables
| Variable Name | Default Value | Description | Example |
|---|---|---|---|
| FOLDER | folder path to watch | /data | |
| EXCLUDE_LIST | comma-separated file name patterns to exclude | .log,temp | |
| PERIODIC_INTERVAL | 3600 | full scan interval in seconds | 1800 |
| MAIL_FROM | mail sender address | sender@mail.xyz | |
| MAIL_TO | mail receiver address | receiver@mail.xyz | |
| MAIL_SUBJECT | File Notification | mail subject | Something Changed... |
| MAIL_HOST | mail server host name (SMTP) | smtp.mail.xyz | |
| MAIL_SMTP_USER | mail SMTP user name | sender123 | |
| MAIL_SMTP_PASSWORD | mail SMTP password | highs3cure |
Docker Compose
Check Container Info for the latest version.
services:
notify:
image: git.martin-riedl.de/martinr92/notify:v1.0.1
environment:
- FOLDER=/data
- ... (see Environment Variables)
volumes:
- /host/folder:/data