Note to customize the hostname (#465)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-08-20 19:31:52 +02:00
committed by GitHub
parent 21f5d0839a
commit cb4e727d6c

View File

@@ -26,6 +26,26 @@ Or within a container:
docker-compose exec diun diun notif test
```
## Customize the hostname
The hostname that appears in your notifications is the one associated with the
container if you use the Diun image with `docker run` or `docker-compose up -d`.
By default, it's a random string like `d2219b854598`. To change it:
```console
$ docker run --hostname "diun" ...
```
Or if you use docker-compose:
```yaml
services:
diun:
image: crazymax/diun:latest
hostname: diun
...
```
## Notification template
The title and body of a notification message can be customized for each notifier through `templateTitle` and