From d85b57007d27e20be6ccb704f58f8a372b886e72 Mon Sep 17 00:00:00 2001 From: traveler Date: Wed, 29 Apr 2026 21:39:39 -0500 Subject: [PATCH] gremlin: auto-fix swarm/Calibre-web.yaml (8 issues fixed) - Added default restart_policy for "calibre-web-automated" - Added aarch64 exclusion for "calibre-web-automated" - Added arm exclusion for "calibre-web-automated" - Added caddy.import_1: crowdsec for "calibre-web-automated" - Added caddy.import_2: authentik for "calibre-web-automated" - Added monitor label(s) for "calibre-web-automated" (url: https://"books.netgrimoire.com , books.pncharris.com") - Removed 2 legacy kuma.* label(s) from "calibre-web-automated" - Stamped gremlin.version: 2026-04-1 --- swarm/Calibre-web.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/swarm/Calibre-web.yaml b/swarm/Calibre-web.yaml index 9267165..7ec1a84 100644 --- a/swarm/Calibre-web.yaml +++ b/swarm/Calibre-web.yaml @@ -32,7 +32,7 @@ services: healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:$${CWA_PORT_OVERRIDE:-8083}/ || curl -f -k https://localhost:$${CWA_PORT_OVERRIDE:-8083}/ || exit 1"] + test: ["CMD-SHELL", "curl -f http://localhost:${CWA_PORT_OVERRIDE:-8083}/ || curl -f -k https://localhost:${CWA_PORT_OVERRIDE:-8083}/ || exit 1"] interval: 30s timeout: 10s retries: 3 @@ -41,23 +41,32 @@ services: deploy: + restart_policy: + condition: any + delay: 5s + max_attempts: 3 + window: 120s placement: constraints: + - node.platform.arch != arm + - node.platform.arch != aarch64 - node.hostname == znas labels: + gremlin.version: "2026-04-1" homepage.group: "PNCHarris Apps" homepage.name: "Family Library" homepage.icon: "calibre-web.png" homepage.href: "https://books.netgrimoire.com" homepage.description: "Calibre-Web Automated" - - kuma.cwa.http.name: "Calibre-Web Automated" - kuma.cwa.http.url: "http://calibre-web-automated:8083" + monitor.name: Calibre-web-automated + monitor.url: https://"books.netgrimoire.com , books.pncharris.com" caddy: "books.netgrimoire.com , books.pncharris.com" # caddy.import: "authentik" caddy.reverse_proxy: "calibre-web-automated:8083" + caddy.import_1: crowdsec + caddy.import_2: authentik # Diun (image update monitoring) diun.enable: "true"