Prerequisites
Before setting up Plank, ensure you have:- Docker and Docker Compose installed (recommended method)
- A TMDB API key for metadata (get one here)
- (Optional) OpenSubtitles account for subtitle downloads (sign up here)
The fastest way to get started is running the one-line deploy script, which handles nearly everything automatically.
Quick deploy
For Linux systems, use the automated deployment script:Manual setup
Configure environment variables
Edit your
.env file with the following required settings:.env
The
ORIGIN environment variable must match the URL you use to access Plank in your browser (e.g., http://localhost:3300 or http://192.168.1.100:3300).Start the services
- Docker (Recommended)
- Bare Metal
Start all services including Prowlarr and FlareSolverr:This starts three containers:
plank- The main application (port 3300)prowlarr- Torrent indexer search (port 9696)flaresolverr- Captcha solver for indexers (port 8191)
Verify installation
Check that all containers are running:You should see
plank, prowlarr, and flaresolverr in the output.Access the application
Open your browser and navigate to:
- Plank: http://localhost:3300
- Prowlarr: http://localhost:9696
Configure torrent indexers
After creating your account, configure torrent indexers in Prowlarr to enable content search. See the torrent indexers guide for recommendations and setup instructions.
Environment variables reference
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | Path to SQLite database | ./plank.db |
DATA_PATH | Where downloaded files are saved | ./data |
TMDB_API_KEY | TMDB API key for metadata | Required |
PROWLARR_URL | Prowlarr API URL | http://localhost:9696 |
PUBLIC_PROWLARR_URL | Public-facing Prowlarr URL | Same as PROWLARR_URL |
PROWLARR_API_KEY | Prowlarr API key | Auto-configured |
OPENSUBTITLES_API_KEY | OpenSubtitles API key | Optional |
OPENSUBTITLES_USERNAME | OpenSubtitles username | Optional |
OPENSUBTITLES_PASSWORD | OpenSubtitles password | Optional |
BETTER_AUTH_SECRET | Auth secret (32+ characters) | Required |
BETTER_AUTH_URL | Base URL for authentication | http://localhost:3300 |
ENABLE_FILE_STORAGE | Save files to disk | true |
PORT | Server port | 3300 |
ORIGIN | Public URL for CSRF protection | http://localhost:3300 |
Troubleshooting
Prowlarr connection problems
Prowlarr connection problems
Issue: Can’t access Prowlarr APISolutions:
- Check if containers are running:
docker ps - Verify Prowlarr API key in Plank settings page (
/settings) - Verify port 9696 isn’t blocked by firewall (if running outside Docker network)
- Restart containers:
docker compose restart
Cross-site POST form submissions are forbidden
Cross-site POST form submissions are forbidden
Issue: Error when submitting formsSolution: Ensure the
ORIGIN environment variable matches your browser URL exactly (e.g., http://localhost:3300, http://192.168.1.2:3300).Container fails to start
Container fails to start
Issue: Docker container won’t startSolutions:
- Check environment variables in
.envfile - Verify Docker is running:
docker version - Check for port conflicts (3300, 9696, 8191)
- Review container logs:
docker compose logs -f - Sometimes distro mirrors are out of sync - wait and try again
Permission errors
Permission errors
Issue: File permission errorsSolutions:
- Check volume permissions for media directories
- Ensure proper PUID/PGID if using custom user IDs
- Verify the user running Docker has write access to
DATA_PATH
Slow torrent downloads
Slow torrent downloads
Issue: Downloads are slower than expectedSolutions:
- Use an ethernet connection instead of WiFi
- Configure port forwarding for port 6881 in your router
- Check if your VPN is throttling speeds or blocking torrent traffic
- Verify tracker health in Prowlarr
Security best practices
Network security
- Run Plank in Docker containers (already configured)
- Use Tailscale for direct encrypted remote access
- Keep your system and antivirus software updated
- Consider network isolation if possible
File safety
- Scan downloaded files with antivirus software before opening
- Never run executable files (
.exe,.bat,.scr) unless explicitly intended - Verify file sizes and types match expectations
- Only download from indexers with good reputations
VPN recommendations
- Use a reputable torrent-friendly VPN service
- Ensure your VPN has a no-logs policy
- Enable kill switch feature to prevent leaks on connection drops
- Verify your VPN connection before starting downloads
Next steps
Configure indexers
Set up torrent indexers in Prowlarr to enable content search
API reference
Learn about Plank’s API endpoints and integration options