From 8b4b5aa78ae96e1642f8c9bf6670120b7b3aa0ff Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Wed, 12 Feb 2025 14:01:40 +0000 Subject: [PATCH] update .gitignore for stirling and add diun service configuration in compose.yaml --- .gitignore | 8 ++++---- diun/compose.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 diun/compose.yaml diff --git a/.gitignore b/.gitignore index b3b4d84..5c25d0d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,16 +4,16 @@ nginxproxymanager/*/ media/audiobookshelf/ ntfy/*/ vaultwarden/*/ -standard-notes/ pinchflat/ homepage/config/logs/ speedtest/config/ caddy/ts-caddy/ +diun/data/ # stirling -pdf/stirling/latest/data -pdf/stirling/latest/logs -pdf/stirling/latest/config/db/backup +pdf/stirling/latest/data/ +pdf/stirling/latest/logs/ +pdf/stirling/latest/config/db/backup/ pdf/stirling/latest/config/*.db # ignore environment files diff --git a/diun/compose.yaml b/diun/compose.yaml new file mode 100644 index 0000000..352317a --- /dev/null +++ b/diun/compose.yaml @@ -0,0 +1,19 @@ + +services: + diun: + image: crazymax/diun:latest + command: serve + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock + environment: + - TZ=America/New_York + - DIUN_WATCH_WORKERS=20 + - DIUN_WATCH_SCHEDULE=0 */6 * * * + - DIUN_WATCH_JITTER=30s + - DIUN_PROVIDERS_DOCKER=true + - DIUN_NOTIF_TELEGRAM_TOKEN=${TELEGRAM_TOKEN} + - DIUN_NOTIF_TELEGRAM_CHATIDS=${TELEGRAM_CHAT_ID} + labels: + - diun.enable=true + restart: always