Set up diun

This commit is contained in:
Colin Hebert
2022-12-26 13:24:02 +01:00
parent a2f4196b4f
commit 5032c564b8
4 changed files with 50 additions and 0 deletions

View File

@@ -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

View File

View File

@@ -0,0 +1,2 @@
Contains the file `gotify_token`
More on https://crazymax.dev/diun/notif/gotify/

View File

@@ -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