Set up diun
This commit is contained in:
13
mounts/diun/config/diun.yml
Normal file
13
mounts/diun/config/diun.yml
Normal 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
|
||||
0
mounts/diun/data/README.md
Normal file
0
mounts/diun/data/README.md
Normal file
2
mounts/diun/secrets/README.md
Normal file
2
mounts/diun/secrets/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
Contains the file `gotify_token`
|
||||
More on https://crazymax.dev/diun/notif/gotify/
|
||||
35
utilities.docker-compose.yml
Normal file
35
utilities.docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user