From cb4e727d6c27645914337fef35d2cfe977abb02f Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 20 Aug 2021 19:31:52 +0200 Subject: [PATCH] Note to customize the hostname (#465) Co-authored-by: CrazyMax --- docs/faq.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index ac3cf6e9..706d10b7 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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