I have a NAS which I use for storage and I have a Pi which I use for serving applications.
I thought I could just throw Calibre Web on the Pi, point it to my NAS and then be good to go. Charlie_Murphy_Wrong.gif
So Calibre Web said it needed a Calibre database, cool. I installed Calibre proper and created the database. But its not aware of my chosen book location.
I feel like I’m going all about the houses and introducing a level of complexity beyond what is required? Before I knuckle down and persist with this, I thought I’d ask and make sure I’m going in the right direction for what I’m trying to achieve?
I installed Calibre proper and created the database. But its not aware of my chosen book location.
Calibre uses its own storage/file/folder layout. The usual way would be to set up a Calibre database, point it to the storage location you want, then import your books from wherever they’re stored. Then point Calibre web view towards that library.
With a somewhat similar usecase, I ended up using Kavita.
deleted by creator
One technique I use to simplify hosting apps that have particular filesystem requirements is to mount the data paths into a docker-compose where the app is running. That source path may be an NFS share from another computer. This essentially lets you have filesystem access inside the container exactly where you need it, while the block device and filesystem that the data is stored on could be anywhere else. For me, I put my important data on a NAS with one zfs dataset per type of media, and export that dataset over nfs. This gives me durable, fault tolerant storage of the data, while being able to host the app on something running off an sd card or whatever. I do this with Plex, photoprism, etc…
I did basically what you are trying to do:
I installed Calibre docker on my server machine with the DB local (important because the DB won’t work over a share) and the book storage on the NAS.
Then I installed Calibre-web docker and pointed it to the same local DB and the same book storage on the NAS.
Now I can use Calibre for import, DRM removal, metadata updates, etc. And I use Calibre-web for user management, OPDS feed, etc.
Let me know if you want more info.