2026-05-30 09:27:57 +02:00
|
|
|
# unarr — TorrentClaw agent
|
|
|
|
|
#
|
|
|
|
|
# Quick start:
|
|
|
|
|
# 1. Copy this file to any directory.
|
|
|
|
|
# 2. Set UNARR_API_KEY to your key (Settings → API Keys on torrentclaw.com).
|
|
|
|
|
# 3. Set DOWNLOAD_DIR to your media folder (absolute path).
|
|
|
|
|
# 4. Run: docker compose up -d
|
|
|
|
|
#
|
|
|
|
|
# Get your API key: https://torrentclaw.com/settings/api-keys
|
|
|
|
|
# Full docs: https://torrentclaw.com/unarr
|
|
|
|
|
|
2026-03-28 11:29:42 +01:00
|
|
|
services:
|
|
|
|
|
unarr:
|
|
|
|
|
image: torrentclaw/unarr:latest
|
2026-05-30 09:27:57 +02:00
|
|
|
pull_policy: always # always pull on `up` so you stay on the latest release
|
2026-03-28 11:29:42 +01:00
|
|
|
container_name: unarr
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2026-05-30 09:27:57 +02:00
|
|
|
# host network is required for:
|
|
|
|
|
# - streaming to reach your TV / mobile / other LAN devices (port 11818)
|
|
|
|
|
# - HLS transcode server (port 11819)
|
|
|
|
|
# - Tailscale connectivity (if you use it)
|
|
|
|
|
# On macOS / Windows Docker Desktop, replace with `ports` mapping (see below).
|
|
|
|
|
network_mode: host
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
# --- Required ---
|
|
|
|
|
- UNARR_API_KEY=${UNARR_API_KEY:?Set UNARR_API_KEY in .env or export it}
|
|
|
|
|
|
|
|
|
|
# --- Optional ---
|
|
|
|
|
# Server URL — change only if you run a self-hosted TorrentClaw instance
|
|
|
|
|
- UNARR_API_URL=${UNARR_API_URL:-https://torrentclaw.com}
|
|
|
|
|
- TZ=${TZ:-UTC}
|
2026-03-28 11:29:42 +01:00
|
|
|
|
|
|
|
|
volumes:
|
2026-05-30 09:27:57 +02:00
|
|
|
# Config: config.toml is auto-created here on first run.
|
|
|
|
|
# After first start, edit this file to set organize paths, quality, etc.
|
|
|
|
|
- ${CONFIG_DIR:-./config}:/config
|
|
|
|
|
|
|
|
|
|
# Downloads: where finished media is saved.
|
|
|
|
|
# Set DOWNLOAD_DIR in .env or export it before running.
|
|
|
|
|
- ${DOWNLOAD_DIR:?Set DOWNLOAD_DIR to your media folder}:/downloads
|
|
|
|
|
|
|
|
|
|
# Data: piece-completion DB, HLS cache, DHT nodes.
|
|
|
|
|
# Named volume keeps this off your media drive (avoids NFS locking issues).
|
2026-03-28 11:29:42 +01:00
|
|
|
- unarr-data:/data
|
|
|
|
|
|
2026-05-30 09:27:57 +02:00
|
|
|
# Optional: limit CPU/RAM for transcoding on shared hosts
|
|
|
|
|
# deploy:
|
|
|
|
|
# resources:
|
|
|
|
|
# limits:
|
|
|
|
|
# memory: 2G
|
|
|
|
|
# cpus: "4.0"
|
2026-03-28 11:29:42 +01:00
|
|
|
|
2026-05-30 09:27:57 +02:00
|
|
|
# --- macOS / Windows alternative (replace network_mode: host above) ---
|
|
|
|
|
# network_mode: bridge
|
2026-03-28 11:29:42 +01:00
|
|
|
# ports:
|
2026-05-30 09:27:57 +02:00
|
|
|
# - "11818:11818" # direct stream (VLC, download)
|
|
|
|
|
# - "11819:11819" # HLS transcode (web player)
|
|
|
|
|
# - "42069:42069" # BitTorrent incoming peers
|
|
|
|
|
# Note: streaming will only reach devices on the same machine.
|
|
|
|
|
# For LAN / Tailscale playback use a Linux host with network_mode: host.
|
2026-03-28 11:29:42 +01:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
unarr-data:
|