diff --git a/docker/diun/compose.yml b/docker/diun/compose.yml new file mode 100644 index 0000000..95029fb --- /dev/null +++ b/docker/diun/compose.yml @@ -0,0 +1,13 @@ +services: + diun: + image: crazymax/diun:latest + command: serve + container_name: diun + volumes: + - "./data:/data" + - "/var/run/docker.sock:/var/run/docker.sock" + - "./diun.yml:/diun.yml:ro" + environment: + # general settings + - "TZ=Europe/Berlin" + restart: always diff --git a/docker/diun/data/images-to-monitory.yml b/docker/diun/data/images-to-monitory.yml new file mode 100644 index 0000000..ce742a8 --- /dev/null +++ b/docker/diun/data/images-to-monitory.yml @@ -0,0 +1,2 @@ +- name: caddy:2-builder +- name: caddy:2 diff --git a/docker/diun/diun.yml b/docker/diun/diun.yml new file mode 100644 index 0000000..c06c09b --- /dev/null +++ b/docker/diun/diun.yml @@ -0,0 +1,20 @@ +watch: + workers: 20 + schedule: "0 */6 * * *" + firstCheckNotif: false + jitter: "30s" + +providers: + docker: + watchByDefault: true + file: + filename: /data/images-to-monitor.yml + +notif: + ntfy: + endpoint: https://notify.grobecker.me + topic: diun + priority: 3 + templateTitle: "[diun hetzner] {{ .Entry.Image }} released" + templateBody: | + Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released. diff --git a/docker/diun/info.md b/docker/diun/info.md new file mode 100644 index 0000000..5bf3454 --- /dev/null +++ b/docker/diun/info.md @@ -0,0 +1,2 @@ +This here is the config for diun on my _hetzner_-instance, meaning that my _raspi_-instance is slightly different\ +For example: _hetzner_ uses a dedicated file while _raspi_ uses environment-variables