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:
2026-03-02 01:06:29 +00:00
parent d186aec6e5
commit ebd813afcc
+4 -16
View File
@@ -1,24 +1,12 @@
# https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/ # 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: networks:
default: default:
external: external:
name: npm-network 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: services:
calibre: calibre:
image: lscr.io/linuxserver/calibre:latest image: lscr.io/linuxserver/calibre:latest
@@ -33,8 +21,8 @@ services:
- VIRTUAL_PORT=8080 - VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=calibre.kolpacksoftware.com - LETSENCRYPT_HOST=calibre.kolpacksoftware.com
volumes: volumes:
- config:/config - /mnt/nas_media/books/calibre:/config
- import:/calibre-import - /mnt/nas_media/books/calibre-import:/calibre-import
ports: ports:
- 8090:8080 - 8090:8080
- 8091:8081 - 8091:8081