Notificaciones SMTP: variables en compose, ejemplo en .env y README
This commit is contained in:
18
.env.example
18
.env.example
@@ -1,6 +1,18 @@
|
||||
TZ=Europe/Madrid
|
||||
WATCHTOWER_CLEANUP=true
|
||||
WATCHTOWER_INCLUDE_STOPPED=false
|
||||
WATCHTOWER_SCHEDULE=0 0 3 * * *
|
||||
# WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||
# WATCHTOWER_NOTIFICATION_URL=telegram://TOKEN@CHATID
|
||||
WATCHTOWER_SCHEDULE=0 30 3 * * *
|
||||
|
||||
# Notificaciones (Shoutrrr)
|
||||
# Activar notificaciones vía Shoutrrr (SMTP, Telegram, Slack, etc.)
|
||||
WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||
|
||||
# SMTP (ejemplo)
|
||||
# Formato general Shoutrrr SMTP:
|
||||
# smtp://USUARIO:PASS@SMTP_HOST:587/?from=watchtower@midominio.com&to=ops@midominio.com&subject=Watchtower%20Actualizaciones&starttls=Yes
|
||||
# Nota: Escapa caracteres especiales en usuario/password si es necesario.
|
||||
WATCHTOWER_NOTIFICATION_URL=smtp://USUARIO:PASS@smtp.example.com:587/?from=watchtower@midominio.com&to=ops@midominio.com&subject=Watchtower%20Actualizaciones&starttls=Yes
|
||||
|
||||
# Opcional: nivel y reporte final
|
||||
WATCHTOWER_NOTIFIER_LEVEL=info
|
||||
WATCHTOWER_NOTIFICATIONS_REPORT=true
|
||||
|
||||
12
README.md
12
README.md
@@ -54,6 +54,18 @@ environment:
|
||||
- Mantén backups si actualizas servicios con datos persistentes
|
||||
- Excluye servicios que gestionas manualmente (`enable=false`)
|
||||
|
||||
## Notificaciones SMTP (Shoutrrr)
|
||||
Activa notificaciones con Shoutrrr y usa una URL SMTP en `.env`:
|
||||
```env
|
||||
WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||
WATCHTOWER_NOTIFICATION_URL=smtp://USUARIO:PASS@smtp.example.com:587/?from=watchtower@midominio.com&to=ops@midominio.com&subject=Watchtower%20Actualizaciones&starttls=Yes
|
||||
WATCHTOWER_NOTIFIER_LEVEL=info
|
||||
WATCHTOWER_NOTIFICATIONS_REPORT=true
|
||||
```
|
||||
Consejos:
|
||||
- Escapa caracteres especiales en usuario/contraseña.
|
||||
- Verifica puerto TLS/STARTTLS de tu servidor (587 suele ser STARTTLS).
|
||||
|
||||
## Troubleshooting
|
||||
```bash
|
||||
docker logs watchtower --tail=200
|
||||
|
||||
@@ -5,6 +5,10 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Europe/Madrid
|
||||
- WATCHTOWER_NOTIFICATIONS=${WATCHTOWER_NOTIFICATIONS}
|
||||
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
|
||||
- WATCHTOWER_NOTIFIER_LEVEL=${WATCHTOWER_NOTIFIER_LEVEL}
|
||||
- WATCHTOWER_NOTIFICATIONS_REPORT=${WATCHTOWER_NOTIFICATIONS_REPORT}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
command:
|
||||
|
||||
Reference in New Issue
Block a user