Remake Repository

This commit is contained in:
arch3rPro
2025-06-30 23:37:03 +08:00
parent d593e04bd7
commit e98d0faf79
420 changed files with 55489 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
# Diun
Diun 是一个用于监控 Docker 镜像更新并发送通知的命令行工具。
## 功能特性
- 自动监控 Docker 镜像更新
- 支持多种通知方式(Discord、Telegram、Slack、邮件等)
- 支持多种提供者(Docker、Kubernetes、Swarm、Nomad等)
- 基于 Cron 表达式的调度
- 支持多种架构(amd64、arm64、arm/v6、arm/v7等)
- 轻量级设计,资源占用少
## 使用方法
1. 部署后 Diun 会自动开始监控 Docker 镜像
2. 默认每6小时检查一次镜像更新
3. 当检测到镜像更新时,会发送通知
4. 通过 Docker 标签 `diun.enable=true` 控制哪些容器被监控
## 配置说明
- **时区**Asia/Shanghai(上海时区)
- **数据存储**`./data` 目录包含 bbolt 数据库
- **配置文件**`./diun.yml` 包含所有监控和通知配置
## 默认配置
应用使用以下默认配置:
```yaml
watch:
workers: 20
schedule: "0 */6 * * *"
firstCheckNotif: false
providers:
docker:
watchByDefault: true
```
## 自定义配置
如需自定义监控、通知等配置,请编辑 `diun.yml` 文件。参考官方文档进行配置:
- [配置概述](https://crazymax.dev/diun/configuration/overview/)
- [通知配置](https://crazymax.dev/diun/notifications/)
- [提供者配置](https://crazymax.dev/diun/providers/)
## 支持的提供者
- **Docker**:监控 Docker 容器和镜像
- **Kubernetes**:监控 Kubernetes 集群
- **Swarm**:监控 Docker Swarm 服务
- **Nomad**:监控 HashiCorp Nomad 任务
- **Dockerfile**:监控 Dockerfile 中的基础镜像
- **File**:从文件读取镜像列表
## 支持的通知方式
- Discord、Telegram、Slack
- 邮件、Matrix、MQTT
- Pushover、Rocket.Chat
- Webhook、Script、Signal
- Gotify、Ntfy、Teams
## 监控配置
要监控特定的 Docker 容器,在容器标签中添加:
```yaml
labels:
- "diun.enable=true"
- "diun.watch_repo=true" # 可选,监控仓库更新
```
## 相关链接
- [官方网站](https://crazymax.dev/diun/)
- [GitHub 项目](https://github.com/crazy-max/diun)
- [Docker Hub](https://hub.docker.com/r/crazymax/diun/)
- [基础示例](https://crazymax.dev/diun/usage/basic-example/)
+82
View File
@@ -0,0 +1,82 @@
# Diun
Diun is a CLI tool to monitor Docker image updates and send notifications.
## Features
- Automatically monitor Docker image updates
- Support multiple notification methods (Discord, Telegram, Slack, Email, etc.)
- Support multiple providers (Docker, Kubernetes, Swarm, Nomad, etc.)
- Cron-based scheduling
- Support multiple architectures (amd64, arm64, arm/v6, arm/v7, etc.)
- Lightweight design with low resource usage
## Usage
1. After deployment, Diun will automatically start monitoring Docker images
2. Default check interval is every 6 hours
3. When image updates are detected, notifications will be sent
4. Control which containers are monitored via Docker label `diun.enable=true`
## Configuration
- **Timezone**: Asia/Shanghai (Shanghai timezone)
- **Data Storage**: `./data` directory contains bbolt database
- **Config File**: `./diun.yml` contains all monitoring and notification configurations
## Default Configuration
The application uses the following default configuration:
```yaml
watch:
workers: 20
schedule: "0 */6 * * *"
firstCheckNotif: false
providers:
docker:
watchByDefault: true
```
## Custom Configuration
To customize monitoring, notifications, and other configurations, please edit the `diun.yml` file. Refer to the official documentation for configuration:
- [Configuration Overview](https://crazymax.dev/diun/configuration/overview/)
- [Notifications](https://crazymax.dev/diun/notifications/)
- [Providers](https://crazymax.dev/diun/providers/)
## Supported Providers
- **Docker**: Monitor Docker containers and images
- **Kubernetes**: Monitor Kubernetes clusters
- **Swarm**: Monitor Docker Swarm services
- **Nomad**: Monitor HashiCorp Nomad tasks
- **Dockerfile**: Monitor base images in Dockerfiles
- **File**: Read image list from files
## Supported Notifications
- Discord, Telegram, Slack
- Email, Matrix, MQTT
- Pushover, Rocket.Chat
- Webhook, Script, Signal
- Gotify, Ntfy, Teams
## Monitoring Configuration
To monitor specific Docker containers, add these labels:
```yaml
labels:
- "diun.enable=true"
- "diun.watch_repo=true" # Optional, monitor repository updates
```
## Links
- [Official Website](https://crazymax.dev/diun/)
- [GitHub Project](https://github.com/crazy-max/diun)
- [Docker Hub](https://hub.docker.com/r/crazymax/diun/)
- [Basic Example](https://crazymax.dev/diun/usage/basic-example/)
+35
View File
@@ -0,0 +1,35 @@
name: Diun
tags:
- 实用工具
title: Docker 镜像更新通知工具
description: Diun 是一个用于监控 Docker 镜像更新并发送通知的命令行工具
additionalProperties:
key: diun
name: Diun
tags:
- Tool
shortDescZh: Docker 镜像更新通知命令行工具
shortDescEn: Docker image update notification CLI tool
description:
en: Diun is a CLI tool to monitor Docker image updates and send notifications
ja: DiunはDockerイメージの更新を監視し、通知を送信するCLIツールです
ms: Diun ialah alat CLI untuk memantau kemas kini imej Docker dan menghantar notifikasi
pt-br: Diun é uma ferramenta CLI para monitorar atualizações de imagens Docker e enviar notificações
ru: Diun — это CLI-инструмент для мониторинга обновлений Docker-образов и отправки уведомлений
ko: Diun은 Docker 이미지 업데이트를 모니터링하고 알림을 보내는 CLI 도구입니다
zh-Hant: Diun 是一個用於監控 Docker 映像更新並發送通知的命令列工具
zh: Diun 是一个用于监控 Docker 镜像更新并发送通知的命令行工具
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://crazymax.dev/diun/
github: https://github.com/crazy-max/diun
document: https://crazymax.dev/diun/usage/basic-example/
architectures:
- amd64
- arm/v6
- arm/v7
- arm64
- 386
- ppc64le
+2
View File
@@ -0,0 +1,2 @@
additionalProperties:
formFields: []
+8
View File
@@ -0,0 +1,8 @@
watch:
workers: 20
schedule: "0 */6 * * *"
firstCheckNotif: false
providers:
docker:
watchByDefault: true
+19
View File
@@ -0,0 +1,19 @@
services:
diun:
container_name: ${CONTAINER_NAME}
image: crazymax/diun:latest
command: serve
restart: always
networks:
- 1panel-network
volumes:
- ./data:/data
- ./diun.yml:/diun.yml:ro
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "TZ=Asia/Shanghai"
- "LOG_LEVEL=info"
- "LOG_JSON=false"
networks:
1panel-network:
external: true
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB