services/swarm/Calibre-web.yaml
traveler d85b57007d
Some checks are pending
Deploy on push / detect (push) Waiting to run
Deploy on push / deploy_swarm (push) Blocked by required conditions
Deploy on push / deploy_compose (push) Blocked by required conditions
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
2026-04-29 21:39:39 -05:00

77 lines
No EOL
2.7 KiB
YAML

services:
calibre-web-automated:
image: crocodilestick/calibre-web-automated:latest
networks:
- netgrimoire
environment:
# Only change these if you know what you're doing
PUID: "1964"
PGID: "1964"
# Edit to match your current timezone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ: America/Chicago
# Match your standard UID:GID execution model
#user: "1001:998"
volumes:
# - /data/nfs/Baxter/Data/media:/data:shared
# CW users migrating should stop their existing CW instance, make a copy of the config folder, and bind that here to carry over all of their user settings ect.
- /DockerVol/Calibre-web/Config:/config
# This is an ingest dir, NOT a library one. Anything added here will be automatically added to your library according to the settings you have configured in CWA Settings page. All files placed here are REMOVED AFTER PROCESSING
# - /path/to/the/folder/you/want/to/use/for/book/ingest:/cwa-book-ingest
# If you don't have an existing library, CWA will automatically create one at the bind provided here
# - /path/to/your/calibre/library:/calibre-library
# - /data/nfs/Baxter/Data/media:/data:shared
- /data/nfs/znas/Data/media/books/library/Netgrimoire:/calibre-library:shared
ports:
# Change the first number to change the port you want to access the Web UI, not the second
- target: 8083
published: 807
healthcheck:
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
start_period: 300s
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"
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"
networks:
netgrimoire:
external: true
##