From 5032c564b8713b01b49399ebad96ba891c6a1248 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Mon, 26 Dec 2022 13:24:02 +0100 Subject: [PATCH] Set up diun --- mounts/diun/config/diun.yml | 13 +++++++++++++ mounts/diun/data/README.md | 0 mounts/diun/secrets/README.md | 2 ++ utilities.docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 mounts/diun/config/diun.yml create mode 100644 mounts/diun/data/README.md create mode 100644 mounts/diun/secrets/README.md create mode 100644 utilities.docker-compose.yml diff --git a/mounts/diun/config/diun.yml b/mounts/diun/config/diun.yml new file mode 100644 index 0000000..620b221 --- /dev/null +++ b/mounts/diun/config/diun.yml @@ -0,0 +1,13 @@ +watch: + schedule: "0 */6 * * *" + +notif: + gotify: + endpoint: http://gotify + tokenFile: /run/secrets/gotify_token + +providers: + docker: + endpoint: tcp://docker:2375 + watchByDefault: true + watchStopped: true diff --git a/mounts/diun/data/README.md b/mounts/diun/data/README.md new file mode 100644 index 0000000..e69de29 diff --git a/mounts/diun/secrets/README.md b/mounts/diun/secrets/README.md new file mode 100644 index 0000000..e13c7de --- /dev/null +++ b/mounts/diun/secrets/README.md @@ -0,0 +1,2 @@ +Contains the file `gotify_token` +More on https://crazymax.dev/diun/notif/gotify/ \ No newline at end of file diff --git a/utilities.docker-compose.yml b/utilities.docker-compose.yml new file mode 100644 index 0000000..fe09319 --- /dev/null +++ b/utilities.docker-compose.yml @@ -0,0 +1,35 @@ +services: + diun: + image: crazymax/diun + networks: + - docker + - gotify + volumes: + - diun:/data + configs: + - source: diun + target: /etc/diun/ + secrets: + - gotify_token + restart: unless-stopped + +networks: + docker: + external: true + gotify: + external: true + +volumes: + diun: + driver_opts: + type: none + o: bind + device: ${MOUNT_DIR?}/diun/data/ + +configs: + diun: + file: ${MOUNT_DIR?}/diun/config/ + +secrets: + gotify_token: + file: ${MOUNT_DIR?}/diun/secrets/gotify_token \ No newline at end of file