added diun deployment

This commit is contained in:
Bryan Joshua Pedini 2022-08-21 17:24:30 +02:00
parent 634fb9b85d
commit 7325916a03
4 changed files with 37 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.env
data
docker-compose.override.yml

View File

@ -1 +1,2 @@
# Diun Deployment # Diun Deployment
Put Diun's NOTIF hanlders in `docker-compose.override.yml`

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
---
services:
diun:
image: crazymax/diun:${DIUN_VERSION}
restart: unless-stopped
environment:
- TZ=${DIUN_TIMEZONE}
- LOG_LEVEL=${DIUN_LOG_LEVEL}
- LOG_JSON=${DIUN_LOG_JSON}
- DIUN_WATCH_WORKERS=${DIUN_WATCH_WORKERS}
- DIUN_WATCH_SCHEDULE=${DIUN_WATCH_SCHEDULE}
- DIUN_PROVIDERS_DOCKER=${DIUN_PROVIDERS_DOCKER}
labels:
- diun.enable=${DIUN_ENABLE}
- diun.watch_repo=${DIUN_WATCHREPO}
- diun.sort_tags=${DIUN_SORTALGO}
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock:ro

14
env.example Normal file
View File

@ -0,0 +1,14 @@
# Diun Configuration
DIUN_VERSION=4.22.0
DIUN_DATA=./data
DIUN_TIMEZONE=Europe/London
DIUN_LOG_LEVEL=info
DIUN_LOG_JSON=false
DIUN_WATCH_WORKERS=20
DIUN_WATCH_SCHEDULE=0 */6 * * *
DIUN_PROVIDERS_DOCKER=true
# Diun monitor Diun image
DIUN_ENABLE=true
DIUN_WATCHREPO=true
DIUN_SORTALGO=semver