Initial diun stuff.

This commit is contained in:
Víðir Valberg Guðmundsson 2023-09-22 16:26:10 +02:00
parent c50bccfada
commit cfd4699b4a
2 changed files with 47 additions and 0 deletions

View file

@ -216,3 +216,8 @@ services:
watchtower: watchtower:
file: watchtower.yml file: watchtower.yml
version: "1.5.3" version: "1.5.3"
diun:
file: diun.yml
version: "4.25"
volume_folder: "{{ volume_root_folder }}/diun"

View file

@ -0,0 +1,42 @@
# 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