53 lines
1.3 KiB
Markdown
53 lines
1.3 KiB
Markdown
|
|
```yaml
|
|
services:
|
|
diun:
|
|
image: crazymax/diun:latest
|
|
container_name: DIUN
|
|
command: serve
|
|
volumes:
|
|
- "/volume1/docker/diun/:/data"
|
|
- "/volume1/docker/diun/diun.yml:/diun.yml:ro"
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
environment:
|
|
- "TZ=Europe/Rome"
|
|
- "DIUN_WATCH_WORKERS=20"
|
|
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
|
|
- "DIUN_WATCH_JITTER=30s"
|
|
- "DIUN_PROVIDERS_DOCKER=true"
|
|
- "DIUN_WATCH_FIRSTCHECKNOTIF=true"
|
|
labels:
|
|
- "diun.enable=true"
|
|
restart: always
|
|
```
|
|
|
|
## CONFIGURAZIONE del file `diun.yml`
|
|
|
|
```yaml
|
|
defaults:
|
|
watchRepo: false
|
|
notifyOn:
|
|
- new
|
|
- update
|
|
watch:
|
|
firstCheckNotif: true
|
|
notif:
|
|
mail:
|
|
host: out.smtpfy.com
|
|
username: eqwououimu_tr
|
|
password: 4ZrQq75l9vP%m5n%cBPfEamW
|
|
port: 465
|
|
ssl: true
|
|
insecureSkipVerify: false
|
|
from: support@soleyma.com
|
|
to:
|
|
- support@soleyma.com
|
|
templateTitle: "{{ .Entry.Image }} released"
|
|
templateBody: |
|
|
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
|
|
slack:
|
|
webhookURL: https://hooks.slack.com/services/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
|
|
renderFields: true
|
|
templateBody: |
|
|
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
|
|
``` |