diun #208

Merged
valberg merged 3 commits from diun into main 2024-03-28 14:02:25 +00:00
3 changed files with 22 additions and 44 deletions
Showing only changes of commit 483bfaf792 - Show all commits

View file

@ -212,8 +212,7 @@ services:
version: "1.5.3"
diun:
file: diun.yml
version: "4.25"
version: "4.27"
volume_folder: "{{ volume_root_folder }}/diun"
### Uptime monitoring ###

View file

@ -1,42 +0,0 @@
# vim: ft=yaml.ansible
---
- name: Create diun volume folder
file:
path: "{{ services.diun.volume_folder }}"
state: directory
- name: Add diun notif config
template:
src: diun-notif-config.yml.j2
dest: "{{ services.diun.volume_folder }}/notif-config.yml"
owner: root
group: root
mode: 0600
- name: Setup diun
docker_compose:
project_name: diun
pull: yes
definition:
version: "3.5"
services:
diun:
container_name: diun
image: "crazymax/diun:{{ services.diun.version }}"
command: serve
volumes:
- "./data:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=Europe/Paris"
- "LOG_LEVEL=info"
- "LOG_JSON=false"
- "DIUN_WATCH_WORKERS=20"
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
- "DIUN_WATCH_JITTER=30s"
- "DIUN_PROVIDERS_DOCKER=true"
labels:
- "diun.enable=true"
restart: always

View file

@ -0,0 +1,21 @@
# vim: ft=yaml.ansible
---
version: "3.5"
services:
diun:
image: "ghcr.io/crazy-max/diun:{{ services.diun.version }}"
command: serve
volumes:
- "./data:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=Europe/Paris"
- "DIUN_WATCH_WORKERS=20"
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
- "DIUN_WATCH_JITTER=30s"
- "DIUN_PROVIDERS_DOCKER=true"
- "DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true"
labels:
- "diun.enable=true"
restart: always