diff --git a/hosts/franz/arion/infrastructure/arion-compose.nix b/hosts/franz/arion/infrastructure/arion-compose.nix index fbf82e1..5e8be48 100644 --- a/hosts/franz/arion/infrastructure/arion-compose.nix +++ b/hosts/franz/arion/infrastructure/arion-compose.nix @@ -103,5 +103,34 @@ "/home/ghoscht/.docker/infrastructure/dyndns.env" ]; }; + diun.service = { + image = "crazymax/diun:4.28"; + container_name = "diun"; + restart = "always"; + command = "serve"; + volumes = [ + "/storage/dataset/docker/infrastructure/diun_data:/data" + "/var/run/docker.sock:/var/run/docker.sock" + ]; + labels = { + "diun.enable" = "true"; + }; + environment = { + TZ = "Europe/Berlin"; + LOG_LEVEL = "info"; + DIUN_WATCH_WORKERS = "20"; + DIUN_WATCH_SCHEDULE = "0 */6 * * *"; + DIUN_WATCH_JITTER = "30s"; + DIUN_WATCH_RUNONSTARTUP = "true"; + DIUN_PROVIDERS_DOCKER = "true"; + DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT = "true"; + + DIUN_NOTIF_NTFY_ENDPOINT = "http://ntfy"; + DIUN_NOTIF_NTFY_TOPIC = "docker-updates"; + }; + networks = [ + "dmz" + ]; + }; }; }