calibre: move SQLite DBs to local SSD, sync library to NAS via lsyncd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user