diun: cleaner subject and watch local-build base images
This commit is contained in:
@@ -11,6 +11,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
- "./diun.yml:/diun.yml:ro"
|
- "./diun.yml:/diun.yml:ro"
|
||||||
|
- "./diun.list.yml:/diun.list.yml:ro"
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
environment:
|
environment:
|
||||||
- "TZ=America/New_York"
|
- "TZ=America/New_York"
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Base images for locally-built containers. The docker provider doesn't see
|
||||||
|
# these because the built image has a local-only tag. ctn_names metadata is set
|
||||||
|
# so the email subject still points at the compose dir that needs rebuilding.
|
||||||
|
- name: nextcloud:latest
|
||||||
|
metadata:
|
||||||
|
ctn_names: nextcloud-base
|
||||||
|
- name: githubyumao/mcsmanager-daemon:latest
|
||||||
|
metadata:
|
||||||
|
ctn_names: mcsmanager-daemon-base
|
||||||
@@ -8,6 +8,11 @@ providers:
|
|||||||
docker:
|
docker:
|
||||||
watchByDefault: true # watch every running container without needing labels
|
watchByDefault: true # watch every running container without needing labels
|
||||||
watchStopped: false
|
watchStopped: false
|
||||||
|
file:
|
||||||
|
# Explicit watches for base images of locally-built containers (apps with a
|
||||||
|
# Dockerfile in their compose dir). The docker provider can't see these
|
||||||
|
# because the built image has a local-only tag with no registry digest.
|
||||||
|
filename: /diun.list.yml
|
||||||
|
|
||||||
notif:
|
notif:
|
||||||
mail:
|
mail:
|
||||||
@@ -19,4 +24,13 @@ notif:
|
|||||||
from: argento@fastmail.com
|
from: argento@fastmail.com
|
||||||
to:
|
to:
|
||||||
- timothykim@fastmail.fm
|
- timothykim@fastmail.fm
|
||||||
|
# Subject leads with container name so the compose dir is obvious from the inbox
|
||||||
|
# (e.g. "nextcloud-redis" -> docker/nextcloud/). Default template uses the full
|
||||||
|
# canonical ref with @sha256 digest, which is unreadable.
|
||||||
|
templateTitle: '[{{ .Entry.Status }}] {{ .Entry.Metadata.ctn_names }} ({{ .Entry.Image.Path }}:{{ .Entry.Image.Tag }})'
|
||||||
|
templateBody: |
|
||||||
|
Container: {{ .Entry.Metadata.ctn_names }}
|
||||||
|
Image: {{ .Entry.Image.Path }}:{{ .Entry.Image.Tag }}
|
||||||
|
{{ if .Entry.Image.HubLink }}Link: {{ .Entry.Image.HubLink }}{{ end }}
|
||||||
|
Host: {{ .Meta.Hostname }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user