Fix calibre: replace NFS volumes with systemd automount bind mounts
SQLite (Calibre Notes DB) fails with SQLITE_IOERR on soft NFS when unRAID drives spin down. Replace Docker NFS named volumes with bind mounts to /mnt/nas_media (CIFS via systemd automount), same pattern as backrest and filebrowser-colleen-hd. systemd handles drive reconnection independently.
This commit is contained in:
@@ -1,24 +1,12 @@
|
||||
# https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/
|
||||
# NFS volumes replaced with systemd automount bind mounts (/mnt/nas_media)
|
||||
# to avoid SQLite SQLITE_IOERR on soft NFS when unRAID drives spin down.
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: npm-network
|
||||
|
||||
volumes:
|
||||
config:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/books/calibre"
|
||||
import:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/books/calibre-import"
|
||||
|
||||
services:
|
||||
calibre:
|
||||
image: lscr.io/linuxserver/calibre:latest
|
||||
@@ -33,8 +21,8 @@ services:
|
||||
- VIRTUAL_PORT=8080
|
||||
- LETSENCRYPT_HOST=calibre.kolpacksoftware.com
|
||||
volumes:
|
||||
- config:/config
|
||||
- import:/calibre-import
|
||||
- /mnt/nas_media/books/calibre:/config
|
||||
- /mnt/nas_media/books/calibre-import:/calibre-import
|
||||
ports:
|
||||
- 8090:8080
|
||||
- 8091:8081
|
||||
|
||||
Reference in New Issue
Block a user