Unraid Setup
Prerequisites
- Unraid 6.12+
- Nvidia Driver plugin installed (for GPU acceleration)
- Stash running on Unraid or accessible from Unraid
Option 1: XML Template (Recommended)
1. Download the template
Copy stash-sense.xml to your Unraid flash drive:
2. Add container
Go to Docker → Add Container → Template → User Templates → stash-sense
3. Configure
| Setting | Value |
|---|---|
| Stash URL | http://stash:9999 or your Stash IP/hostname |
| Stash API Key | From Stash: Settings → Security → API Key |
| Data Directory | Path to extracted database files |
| Media Library | The share Stash reads your videos from. Keep Access Mode Read Only unless you enable a feature that writes files (subtitles) |
| MEDIA_PATH_MAP | stash_path=/media. If Stash's template maps your library to /data, use /data=/media |
| PUID / PGID | 99 / 100 (unRAID's nobody:users); files the sidecar creates get this owner |
To keep CPU-heavy jobs off some cores, add --cpuset-cpus=2-7 (your core list) to Extra Parameters. After starting, the plugin's Settings tab shows the GPU tier and each media mount with its mode.
4. Apply
Click Apply. The container will download and start.
Option 2: Docker Compose
If you prefer docker-compose on Unraid:
1. Create directory
2. Create docker-compose.yml
version: "3.8"
services:
stash-sense:
image: carrotwaxr/stash-sense:latest
container_name: stash-sense
runtime: nvidia
restart: unless-stopped
ports:
- "6960:5000"
environment:
- STASH_URL=http://stash:9999
- STASH_API_KEY=your-api-key
- NVIDIA_VISIBLE_DEVICES=all
- PUID=99
- PGID=100
- MEDIA_PATH_MAP=/data=/media
volumes:
- /mnt/user/appdata/stash-sense/data:/data
- /mnt/user/appdata/stash-sense/models:/root/.insightface
- /mnt/user/media:/media:ro
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
3. Start
Database Setup
Download the database release and extract:
cd /mnt/user/appdata/stash-sense/data
wget https://github.com/carrotwaxr/stash-sense/releases/download/db-latest/stash-sense-db.tar.gz
tar -xzf stash-sense-db.tar.gz
rm stash-sense-db.tar.gz
You should have:
Networking
If Stash runs on the same Unraid server, use Docker's internal networking:
- Stash URL:
http://stash:9999(if Stash container is named "stash") - Or use Unraid's IP:
http://192.168.1.x:9999
Next Steps
- GPU Passthrough - ensure GPU is working
- Plugin Setup - install the Stash plugin
- Troubleshooting - if something's not working