Compose deploys used the default pull policy (missing), so switching a service to a tag that was already cached deployed a year-old image (paperless-ngx and heyform :latest). module_defaults now sets pull: always for every docker_compose_v2 task. dockcheck pulls the image it updates, but then ran compose up for the whole stack, which could recreate other containers in the stack from cached images, including ones it excludes. OnlySpecific=true limits it to the updated container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
1.9 KiB
Django/Jinja
54 lines
1.9 KiB
Django/Jinja
# Dockcheck configuration (all options: default.config in mag37/dockcheck)
|
|
# Managed by ansible (roles/cron). This file is sourced as bash.
|
|
#
|
|
# Modes, picked by run_dockcheck.sh with an environment variable:
|
|
# DC_UPDATE=1 auto-update containers labelled mag37.dockcheck.update=true,
|
|
# no notification
|
|
# DC_NOTIFY=1 check every container, send one Gotify notice for updates
|
|
# neither (running dockcheck.sh by hand) check every container, no
|
|
# updates, no notification
|
|
AutoMode=true
|
|
if [[ "${DC_UPDATE:-}" == 1 ]]; then
|
|
OnlyLabel=true
|
|
else
|
|
DontUpdate=true
|
|
fi
|
|
Notify=$([[ "${DC_NOTIFY:-}" == 1 ]] && echo true || echo false)
|
|
|
|
# dockcheck updates itself (git pull in ~/.local/share/dockcheck) each run
|
|
AutoSelfUpdate=true
|
|
|
|
# Only take an image once it's at least this many days old, so a broken
|
|
# release has time to be fixed before it's applied unattended. Newer ones are
|
|
# listed with a "+" and their age, and picked up on a later run.
|
|
DaysOld="3"
|
|
|
|
# Keep the replaced image for 7 days (tagged <date>_<tag>) so a bad update
|
|
# can be rolled back, then delete it. With backups on, dockcheck doesn't
|
|
# prune dangling images (AutoPrune has no effect).
|
|
BackupForDays=7
|
|
|
|
# Check registries in parallel
|
|
MaxAsync=10
|
|
|
|
# Plain output for the cron log: no colour codes or progress bar
|
|
MonoMode=true
|
|
|
|
# Add release-note links (from urls.list) to each update listed
|
|
PrintReleaseURL=true
|
|
|
|
# Recreate only the container that was updated, not its whole compose stack.
|
|
# Otherwise the stack's other containers (excluded or unlabelled ones too)
|
|
# get recreated from whatever image is cached locally.
|
|
OnlySpecific=true
|
|
|
|
# Exclude containers from checking
|
|
Exclude="dawarich_redis,dawarich_db"
|
|
|
|
# Notification channels
|
|
NOTIFY_CHANNELS="gotify"
|
|
|
|
# Gotify notification configuration
|
|
GOTIFY_DOMAIN="https://{{ subdomains.gotify }}"
|
|
GOTIFY_TOKEN="{{ vault_dockcheck.gotify_token }}"
|