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
|
TZ=Europe/Madrid
|
||||||
WATCHTOWER_CLEANUP=true
|
WATCHTOWER_CLEANUP=true
|
||||||
WATCHTOWER_INCLUDE_STOPPED=false
|
WATCHTOWER_INCLUDE_STOPPED=false
|
||||||
WATCHTOWER_SCHEDULE=0 0 3 * * *
|
WATCHTOWER_SCHEDULE=0 30 3 * * *
|
||||||
# WATCHTOWER_NOTIFICATIONS=shoutrrr
|
|
||||||
# WATCHTOWER_NOTIFICATION_URL=telegram://TOKEN@CHATID
|
# 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
|
- Mantén backups si actualizas servicios con datos persistentes
|
||||||
- Excluye servicios que gestionas manualmente (`enable=false`)
|
- 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
|
## Troubleshooting
|
||||||
```bash
|
```bash
|
||||||
docker logs watchtower --tail=200
|
docker logs watchtower --tail=200
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Madrid
|
- 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:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user