ranger/docker-compose.yml
Valentin ff379145cf Feat: panel admin (/admin) avec stats, explorateur de cache et force-refresh
- Protégé par RANGER_ADMIN_TOKEN (panel désactivé si non défini)
- Dashboard : uptime, taille DB, requêtes/streams servis, résolutions,
  hit-rate cache (recherche + dispo), répartition par débrideur/source
- Explorateur de cache : recherches + métadonnées, suppression unitaire
- Force-refresh par IMDB ID (purge recherches+méta -> re-fetch Stremio frais)
- Maintenance : cleanup expirés, flush sélectif ou total
- Métriques hit/miss instrumentées dans le cache

Fix: web.Response étant falsy, `if err:` ne bloquait pas l'auth admin
-> remplacé par `if err is not None:`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 19:48:07 +02:00

25 lines
742 B
YAML

services:
ranger:
build: .
image: ranger:latest
container_name: ranger
restart: unless-stopped
ports:
- "7000:7000"
environment:
- PORT=7000
- RANGER_DB=/data/ranger.db
# Token du panel admin (/admin) — sans lui le panel est désactivé
- RANGER_ADMIN_TOKEN=change-me
# TTLs de cache (secondes) — décommenter pour surcharger
# - RANGER_TTL_CACHED=21600
# - RANGER_TTL_UNCACHED=1200
# - RANGER_TTL_SEARCH=1800
# Proxy sortant optionnel (si l'IP du VPS est bloquée sans StremThru)
# - HTTP_PROXY=http://user:pass@proxyhost:port
# - HTTPS_PROXY=http://user:pass@proxyhost:port
volumes:
- ranger_data:/data
volumes:
ranger_data: