Got diun running.

This commit is contained in:
Víðir Valberg Guðmundsson 2024-03-28 15:01:12 +01:00
parent f8e3823325
commit 483bfaf792
3 changed files with 22 additions and 44 deletions

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