calibre: move SQLite DBs to local SSD, sync library to NAS via lsyncd

This commit is contained in:
2026-03-08 00:03:17 +00:00
parent 964c8bedf3
commit adcaa39e41
+6 -4
View File
@@ -1,7 +1,8 @@
# https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/ # https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/
# Uses NFS via systemd automount (/mnt/nas_books) + bind mounts. # SQLite databases (metadata.db, notes.db) live on local SSD to avoid NFS IOError.
# Docker NFS named volumes caused SQLITE_IOERR on soft timeouts; systemd # lsyncd syncs /srv/calibre/library → /mnt/nas_books/calibre/Calibre Library
# automount with hard NFS blocks briefly on spin-up instead of returning EIO. # 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: networks:
default: default:
@@ -22,7 +23,8 @@ services:
- VIRTUAL_PORT=8080 - VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=calibre.kolpacksoftware.com - LETSENCRYPT_HOST=calibre.kolpacksoftware.com
volumes: volumes:
- /mnt/nas_books/calibre:/config - /srv/calibre/config:/config
- /srv/calibre/library:/config/Calibre Library
- /mnt/nas_books/calibre-import:/calibre-import - /mnt/nas_books/calibre-import:/calibre-import
ports: ports:
- 8090:8080 - 8090:8080