<docker-compose.yml>
services:
diun:
image: crazymax/diun:latest
container_name: diun
command: serve
volumes:
- "./data:/data"
- "./diun.yml:/diun.yml:ro" # diun.yml 파일 만들어 사용
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- TZ=Asia/Seoul
- LOG_LEVEL=info
- LOG_JSON=false
labels:
- "diun.enable=true"
restart: always
<diun.yml>
watch:
workers: 20
schedule: "0 * * * *" #매시간 실행
providers:
docker:
watchStopped: true #정지된 컨테이너도 감시 대상에 포함
notif:
telegram:
token: "<bot-token-value>"
chatIDs:
- <개인ChatID> #개인용
- -<그룹ChatID> #그룹용
templateBody: |
📢 Docker 이미지 업데이트 감지됨!
🐳 이미지: {{ .Entry.Image }}
🏷️ 태그: {{ .Entry.Image.Tag }}
🔍 Digest: {{ .Entry.Image.Digest }}
🕒 빌드일자: {{ .Entry.Manifest.Created }}
🧭 공급자: {{ .Entry.Provider }}
🔗 링크: {{ .Entry.Image.HubLink }}
<테스트 방법>
터미널 창에서 docker compose exec diun diun notif test 실행