Refactor: Dir structure
This commit is contained in:
1
ansible/plays/services/diun/.env
Normal file
1
ansible/plays/services/diun/.env
Normal file
@ -0,0 +1 @@
|
||||
COMPOSE_PROJECT_NAME=diun
|
19
ansible/plays/services/diun/diun.yml
Normal file
19
ansible/plays/services/diun/diun.yml
Normal file
@ -0,0 +1,19 @@
|
||||
watch:
|
||||
workers: 20
|
||||
schedule: "0 */6 * * *"
|
||||
firstCheckNotif: false
|
||||
|
||||
notif:
|
||||
matrix:
|
||||
homeserverURL: http://pantalaimon:8008
|
||||
user: "{{ diun.matrix.user }}"
|
||||
password: "{{ diun.matrix.password }}"
|
||||
roomID: "{{ diun.matrix.roomID }}"
|
||||
msgType: notice
|
||||
templateBody: |
|
||||
{% raw %}Docker tag {{ if .Entry.Image.HubLink }}[**{{ .Entry.Image }}**]({{ .Entry.Image.HubLink }}){{ else }}**{{ .Entry.Image }}**{{ end }} which you subscribed to through {{ .Entry.Provider }} provider {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }} on {{ .Entry.Image.Domain }} registry.
|
||||
{{ if and (eq .Entry.Status "new") (eq .Entry.Image "docker.io/jitsi/web") }}See https://github.com/jitsi/docker-jitsi-meet/releases/tag/{{ .Entry.Image.Tag }}{{ end }}{% endraw %}
|
||||
|
||||
providers:
|
||||
file:
|
||||
filename: /watch.yml
|
29
ansible/plays/services/diun/docker-compose.yaml
Normal file
29
ansible/plays/services/diun/docker-compose.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
diun:
|
||||
image: crazymax/diun:latest
|
||||
container_name: diun
|
||||
command: serve
|
||||
volumes:
|
||||
- "data:/data"
|
||||
- "./diun.yml:/diun.yml:ro,Z"
|
||||
- "./watch.yml:/watch.yml:ro,Z"
|
||||
environment:
|
||||
- "TZ=Europe/Berlin"
|
||||
- "LOG_LEVEL=info"
|
||||
- "LOG_JSON=false"
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
- pantalaimon
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
||||
networks:
|
||||
pantalaimon:
|
||||
external: true
|
||||
|
||||
...
|
6
ansible/plays/services/diun/watch.yml
Normal file
6
ansible/plays/services/diun/watch.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- name: docker.io/jitsi/web
|
||||
watch_repo: true
|
||||
notify_on:
|
||||
- new
|
||||
include_tags:
|
||||
- ^stable-\d+
|
Reference in New Issue
Block a user