Simplify audiobookshelf volume configuration
Use local storage for application data and single NFS volume: - /srv/audiobookshelf/config - local application config - /srv/audiobookshelf/metadata - local metadata database - NFS volume: /mnt/user/media/audiobooks (contains library/ and untagged/ subdirs)
This commit is contained in:
@@ -4,30 +4,12 @@ networks:
|
||||
name: npm-network
|
||||
|
||||
volumes:
|
||||
config:
|
||||
audiobooks:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/audiobooks/config"
|
||||
metadata:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/audiobooks/metadata"
|
||||
library:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/audiobooks/library"
|
||||
untagged:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=192.168.1.192,rw,nolock,soft"
|
||||
device: ":/mnt/user/media/audiobooks/untagged"
|
||||
device: ":/mnt/user/media/audiobooks"
|
||||
|
||||
services:
|
||||
audiobookshelf:
|
||||
@@ -41,10 +23,9 @@ services:
|
||||
- VIRTUAL_PORT=80
|
||||
- LETSENCRYPT_HOST=audiobookshelf.kolpacksoftware.com
|
||||
volumes:
|
||||
- config:/config
|
||||
- metadata:/metadata
|
||||
- library:/audiobooks
|
||||
- untagged:/untagged
|
||||
- /srv/audiobookshelf/config:/config
|
||||
- /srv/audiobookshelf/metadata:/metadata
|
||||
- audiobooks:/audiobooks
|
||||
ports:
|
||||
- 13378:80
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user