# https://thebloody.cloud/posts/Installing-Web-Calibre-in-Docker/ # 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: external: name: npm-network services: calibre: image: lscr.io/linuxserver/calibre:latest container_name: calibre security_opt: - seccomp:unconfined environment: - PUID=99 - PGID=100 - TZ=America/New_York - VIRTUAL_HOST=calibre.kolpacksoftware.com - VIRTUAL_PORT=8080 - LETSENCRYPT_HOST=calibre.kolpacksoftware.com volumes: - /srv/calibre/config:/config - /srv/calibre/library:/config/Calibre Library - /mnt/nas_books/calibre-import:/calibre-import ports: - 8090:8080 - 8091:8081 restart: unless-stopped