From adcaa39e41d79999438919fc8ad8be3b81ce8f90 Mon Sep 17 00:00:00 2001 From: poprhythm Date: Sun, 8 Mar 2026 00:03:17 +0000 Subject: [PATCH] calibre: move SQLite DBs to local SSD, sync library to NAS via lsyncd --- calibre/docker-compose.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/calibre/docker-compose.yaml b/calibre/docker-compose.yaml index 41edd8b..b4bd596 100644 --- a/calibre/docker-compose.yaml +++ b/calibre/docker-compose.yaml @@ -1,7 +1,8 @@ # https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/ -# Uses NFS via systemd automount (/mnt/nas_books) + bind mounts. -# Docker NFS named volumes caused SQLITE_IOERR on soft timeouts; systemd -# automount with hard NFS blocks briefly on spin-up instead of returning EIO. +# SQLite databases (metadata.db, notes.db) live on local SSD to avoid NFS IOError. +# lsyncd syncs /srv/calibre/library → /mnt/nas_books/calibre/Calibre Library +# within ~15s so other devices see an up-to-date read-only replica on the NAS. +# calibre-import stays on NFS as the drop folder for new books. networks: default: @@ -22,7 +23,8 @@ services: - VIRTUAL_PORT=8080 - LETSENCRYPT_HOST=calibre.kolpacksoftware.com volumes: - - /mnt/nas_books/calibre:/config + - /srv/calibre/config:/config + - /srv/calibre/library:/config/Calibre Library - /mnt/nas_books/calibre-import:/calibre-import ports: - 8090:8080