forked from data.coop/ansible
26 lines
852 B
Django/Jinja
26 lines
852 B
Django/Jinja
# 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"
|
|
- "DIUN_NOTIF_MATRIX_HOMESERVERURL=https://{{ services.matrix.domain }}"
|
|
- "DIUN_NOTIF_MATRIX_USER={{ services.diun.matrix_user }}"
|
|
- "DIUN_NOTIF_MATRIX_ROOMID={{ services.diun.matrix_room }}"
|
|
- "DIUN_NOTIF_MATRIX_PASSWORD={{ diun_secrets.matrix_password }}"
|
|
- "DIUN_NOTIF_MATRIX_MSGTYPE=text"
|
|
labels:
|
|
- "diun.enable=true"
|
|
restart: always |