aee517463d
CIFS uid/gid mismatch caused Permission denied on files created via NFS (cert.key, .gnupg, etc. owned by uid=99 with mode 600/700; SMB user can't access them server-side). NFS maps uid/gid directly, avoiding the issue. Use hard mount so spin-up blocks briefly instead of returning EIO.
31 lines
870 B
YAML
31 lines
870 B
YAML
# 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.
|
|
|
|
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:
|
|
- /mnt/nas_books/calibre:/config
|
|
- /mnt/nas_books/calibre-import:/calibre-import
|
|
ports:
|
|
- 8090:8080
|
|
- 8091:8081
|
|
restart: unless-stopped
|