# Diun — Docker Image Update Notifier
#
# Watches all running containers on this host and sends ntfy
# notifications when upstream images update their digest.
# Schedule: Mondays 09:00 (weekly cadence).
#
# ntfy topic: https://ntfy.vish.gg/diun

services:
  diun:
    image: crazymax/diun:latest
    container_name: diun
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - diun-data:/data
    environment:
      LOG_LEVEL: info
      DIUN_WATCH_WORKERS: "20"
      DIUN_WATCH_SCHEDULE: "0 9 * * 1"
      DIUN_WATCH_JITTER: 30s
      DIUN_PROVIDERS_DOCKER: "true"
      DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT: "true"
      DIUN_NOTIF_NTFY_ENDPOINT: "https://ntfy.vish.gg"
      DIUN_NOTIF_NTFY_TOPIC: "diun"
    restart: unless-stopped

volumes:
  diun-data:
