Logo TodTom休闲时光

stash.app/stash在群晖上的部署

安装#

下载并修改docker-compose.yml

 

# APPNICENAME=Stash
# APPDESCRIPTION=An organizer for your porn, written in Go
services:
  stash:
    image: docker.1ms.run/stashapp/stash:latest
    container_name: stash-new
    restart: unless-stopped
    ## the container's port must be the same with the STASH_PORT in the environment section
    ports:
      - "9199: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=/data/
      - STASH_GENERATED=/generated/
      - STASH_METADATA=/metadata/
      - STASH_CACHE=/cache/
      ## Adjust below to change default port (9999)
      - STASH_PORT=9999
      ## 用于反向代理的域名加端口
      ## 例如https://stash.example.com:9199
      - STASH_EXTERNAL_HOST=https://stash.example.com:$your_reverse_proxy_port_or_withoutport
    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
      ## The left part is the path on your host, the right part is the path in the stash container.

      ## Keep configs, scrapers, and plugins here.
      - ./config:/root/.stash
      ## Point this at your collection.
      ## The left side is where your collection is on your host, the right side is where it will be in stash.
      ## 挂载你的视频目录
      ## 例如-/volume4/video/japan:/data/japan
      - ./data:/data
      ## This is where your stash's metadata lives
      - ./metadata:/metadata
      ## Any other cache content.
      - ./cache:/cache
      ## Where to store binary blob data (scene covers, images)
      - ./blobs:/blobs
      ## Where to store generated content (screenshots,previews,transcodes,sprites)
      - ./generated:/generated
     
      

docker compose up -d

更新及删除#

更新#

  • docker compose pull
  • docker compose down
  • docker compose up -d

删除#

  1. docker container kill
  2. docker container rm

官方地址#

  1. 官方安装文档
  2. Github地址