From 7325916a03188d6489244b71b713a80f304c7986 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sun, 21 Aug 2022 17:24:30 +0200 Subject: [PATCH] added diun deployment --- .gitignore | 3 +++ README.md | 1 + docker-compose.yml | 19 +++++++++++++++++++ env.example | 14 ++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 env.example diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30ed369 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.env +data +docker-compose.override.yml diff --git a/README.md b/README.md index 98b6e94..f57e5f5 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ # Diun Deployment +Put Diun's NOTIF hanlders in `docker-compose.override.yml` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..226ba4f --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/env.example b/env.example new file mode 100644 index 0000000..a9a5063 --- /dev/null +++ b/env.example @@ -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