mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
docs: add example for generic service and custom data fields
This commit is contained in:
parent
76f9cea516
commit
390ba1cc40
1 changed files with 15 additions and 0 deletions
|
|
@ -46,6 +46,21 @@ Simple templates are used unless the `notification-report` flag is specified:
|
||||||
|
|
||||||
- `--notification-report` (env. `WATCHTOWER_NOTIFICATION_REPORT`): Use the session report as the notification template data.
|
- `--notification-report` (env. `WATCHTOWER_NOTIFICATION_REPORT`): Use the session report as the notification template data.
|
||||||
|
|
||||||
|
Whenever the `$` character is being used, for example in the case of [custom data fields](https://containrrr.dev/shoutrrr/v0.8/services/generic/#custom_data_fields) of a `generic` service url, the `$` character needs to be
|
||||||
|
escaped with docker compose:
|
||||||
|
``` yaml
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
env:
|
||||||
|
WATCHTOWER_NOTIFICATION_URL: 'generic://signal-cli-rest-api:8080/v2/send?template=json&disabletls=yes&$$number=%2b123456&$$recipient=%2b123456'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Simple templates
|
## Simple templates
|
||||||
|
|
||||||
The default value if not set is `{{range .}}{{.Message}}{{println}}{{end}}`. The example below uses a template that also
|
The default value if not set is `{{range .}}{{.Message}}{{println}}{{end}}`. The example below uses a template that also
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue