docker-compose/stash/docker-compose.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

# APPNICENAME=Stash
# APPDESCRIPTION=An organizer for your ****, written in Go
version: '3.4'
volumes:
content:
driver_opts:
type: "nfs"
o: "addr=192.168.1.245,nolock,soft,rw"
device: ":/mnt/data/storage/stash"
meta:
driver_opts:
type: "nfs"
o: "addr=192.168.1.245,nolock,soft,rw"
device: ":/mnt/data/storage/stash/.metadata"
services:
stash:
image: stashapp/stash:latest
container_name: stash
restart: always
## the container's port must be the same with the STASH_PORT in the environment section
ports:
- "9999:9999"
## If you intend to use stash's DLNA functionality uncomment the below network mode and comment out the above ports section
# network_mode: host
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "2m"
environment:
- STASH_STASH=/ext/data/
- STASH_GENERATED=/ext/generated/
- STASH_METADATA=/ext/metadata/
- STASH_CACHE=/ext/cache/
## Adjust below to change default port (9999)
- STASH_PORT=9999
volumes:
- /etc/localtime:/etc/localtime:ro
## Adjust below paths (the left part) to your liking.
## E.g. you can change ./config:/root/.stash to ./stash:/root/.stash
## Keep configs, scrapers, and plugins here.
- ./config:/root/.stash
## Point this at your collection.
#- ./data:/data
## This is where your stash's metadata lives
- ./metadata:/metadata
## Any other cache content.
- ./cache:/cache
## Where to store generated content (screenshots,previews,transcodes,sprites)
- ./generated:/generated
- type: volume
source: content
target: /data
volume:
nocopy: true