Auto-sync Mon 12 Jan 20:05:01 CET 2026
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
# Servarr Stack
|
||||
|
||||
Stack complet et isolé pour la gestion automatisée des médias.
|
||||
Stack complet et isolé pour la gestion automatisée des médias, entièrement routé via VPN.
|
||||
|
||||
## Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TB
|
||||
subgraph Internet
|
||||
PROTON[ProtonVPN<br/>WireGuard]
|
||||
PROTON[ProtonVPN LU<br/>WireGuard]
|
||||
end
|
||||
|
||||
subgraph Gluetun[gluetun - VPN Container]
|
||||
TRANS[Transmission<br/>:9091]
|
||||
TRANS[Transmission<br/>localhost:9091]
|
||||
PROWLARR[Prowlarr<br/>localhost:9696]
|
||||
RADARR[Radarr<br/>localhost:7878]
|
||||
SONARR[Sonarr<br/>localhost:8989]
|
||||
end
|
||||
|
||||
subgraph Servarr[servarr_internal network]
|
||||
PROWLARR[Prowlarr<br/>:9696]
|
||||
RADARR[Radarr<br/>:7878]
|
||||
SONARR[Sonarr<br/>:8989]
|
||||
subgraph Caddy[Reverse Proxy]
|
||||
CADDY[Caddy + Authelia SSO]
|
||||
end
|
||||
|
||||
subgraph Storage[/mnt/mediaserver/servarr]
|
||||
@@ -25,8 +26,8 @@ flowchart TB
|
||||
MEDIA[media/]
|
||||
end
|
||||
|
||||
PROTON --> Gluetun
|
||||
Gluetun --> TRANS
|
||||
PROTON <--> Gluetun
|
||||
CADDY -->|gluetun:*| Gluetun
|
||||
TRANS --> TORRENTS
|
||||
PROWLARR --> TRANS
|
||||
RADARR --> TRANS
|
||||
@@ -35,15 +36,25 @@ flowchart TB
|
||||
SONARR --> MEDIA
|
||||
```
|
||||
|
||||
!!! success "Kill Switch Intégré"
|
||||
Tous les services partagent le namespace réseau de gluetun via `network_mode: service:gluetun`.
|
||||
Si le VPN tombe, **aucun service n'a accès à Internet**.
|
||||
|
||||
## Services
|
||||
|
||||
| Service | Port | Fonction | URL |
|
||||
|---------|------|----------|-----|
|
||||
| **Gluetun** | - | VPN container (ProtonVPN) | - |
|
||||
| **Transmission** | 9091 | Client BitTorrent | [go/transmission](https://go.talloires.local/transmission) |
|
||||
| **Prowlarr** | 9696 | Gestionnaire d'indexeurs | [go/prowlarr](https://go.talloires.local/prowlarr) |
|
||||
| **Radarr** | 7878 | Gestion des films | [go/radarr](https://go.talloires.local/radarr) |
|
||||
| **Sonarr** | 8989 | Gestion des séries | [go/sonarr](https://go.talloires.local/sonarr) |
|
||||
| Service | Port interne | Fonction | URL |
|
||||
|---------|--------------|----------|-----|
|
||||
| **Gluetun** | 8000 (control) | VPN container (ProtonVPN LU) | - |
|
||||
| **Transmission** | 9091 | Client BitTorrent | [transmission.talloires.tailfd281f.ts.net](https://transmission.talloires.tailfd281f.ts.net) |
|
||||
| **Prowlarr** | 9696 | Gestionnaire d'indexeurs | [prowlarr.talloires.tailfd281f.ts.net](https://prowlarr.talloires.tailfd281f.ts.net) |
|
||||
| **Radarr** | 7878 | Gestion des films | [radarr.talloires.tailfd281f.ts.net](https://radarr.talloires.tailfd281f.ts.net) |
|
||||
| **Sonarr** | 8989 | Gestion des séries | [sonarr.talloires.tailfd281f.ts.net](https://sonarr.talloires.tailfd281f.ts.net) |
|
||||
|
||||
!!! note "Accès LAN également disponible"
|
||||
- `prowlarr.talloires.local`
|
||||
- `sonarr.talloires.local`
|
||||
- `radarr.talloires.local`
|
||||
- `transmission.talloires.local` → **bloqué** (Tailscale uniquement)
|
||||
|
||||
## Structure des données
|
||||
|
||||
@@ -61,31 +72,96 @@ flowchart TB
|
||||
Tous les services voient `/data/` qui pointe vers `/mnt/mediaserver/servarr/`.
|
||||
Cela permet les **hardlinks** — pas de copie, déplacement instantané.
|
||||
|
||||
## Configuration
|
||||
## Configuration réseau
|
||||
|
||||
### Prowlarr → Apps
|
||||
### network_mode: service:gluetun
|
||||
|
||||
Prowlarr doit être configuré pour pousser automatiquement les indexeurs vers Radarr/Sonarr :
|
||||
Tous les services utilisent `network_mode: "service:gluetun"`, ce qui signifie :
|
||||
|
||||
1. Settings → Apps → Add
|
||||
2. Radarr : `http://radarr:7878`, API Key depuis Radarr Settings
|
||||
3. Sonarr : `http://sonarr:8989`, API Key depuis Sonarr Settings
|
||||
- Ils partagent le **même namespace réseau** que gluetun
|
||||
- Ils communiquent entre eux via **localhost**
|
||||
- Les ports sont exposés **uniquement par gluetun**
|
||||
- Pas d'accès direct au réseau Docker
|
||||
|
||||
### Download Client (Transmission)
|
||||
```yaml
|
||||
# Exemple de configuration
|
||||
services:
|
||||
gluetun:
|
||||
ports:
|
||||
- "9091:9091" # Transmission
|
||||
- "9696:9696" # Prowlarr
|
||||
- "7878:7878" # Radarr
|
||||
- "8989:8989" # Sonarr
|
||||
environment:
|
||||
- FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/16,100.64.0.0/10
|
||||
|
||||
prowlarr:
|
||||
network_mode: "service:gluetun"
|
||||
depends_on:
|
||||
gluetun:
|
||||
condition: service_healthy
|
||||
```
|
||||
|
||||
Configuration identique pour Prowlarr, Radarr, Sonarr :
|
||||
### Configuration interne des apps
|
||||
|
||||
- **Host** : `gluetun`
|
||||
- **Port** : `9091`
|
||||
- **Username** : voir `.env`
|
||||
- **Password** : voir `.env`
|
||||
| App | Setting | Valeur |
|
||||
|-----|---------|--------|
|
||||
| **Prowlarr** | Download Client → Transmission | `localhost:9091` |
|
||||
| **Prowlarr** | Apps → Sonarr | `localhost:8989` |
|
||||
| **Prowlarr** | Apps → Radarr | `localhost:7878` |
|
||||
| **Sonarr** | Download Client → Transmission | `localhost:9091` |
|
||||
| **Radarr** | Download Client → Transmission | `localhost:9091` |
|
||||
|
||||
### Jellyfin
|
||||
!!! warning "Important"
|
||||
Ne pas utiliser les noms de containers (`prowlarr`, `sonarr`, etc.) car ils ne sont pas résolvables dans ce mode réseau.
|
||||
|
||||
Bibliothèques à ajouter :
|
||||
## VPN Configuration
|
||||
|
||||
- Films : `/mnt/mediaserver/servarr/media/movies`
|
||||
- Séries : `/mnt/mediaserver/servarr/media/tv`
|
||||
### ProtonVPN WireGuard
|
||||
|
||||
```bash
|
||||
# Vérifier l'IP VPN
|
||||
docker exec gluetun wget -qO- https://ipinfo.io/ip
|
||||
# Doit retourner une IP ProtonVPN Luxembourg (5.253.204.x)
|
||||
```
|
||||
|
||||
| Paramètre | Valeur |
|
||||
|-----------|--------|
|
||||
| Provider | ProtonVPN |
|
||||
| Type | WireGuard |
|
||||
| Serveur | Luxembourg (LU#9) |
|
||||
| Peer Port | 51413 (Transmission) |
|
||||
|
||||
### Firewall
|
||||
|
||||
```yaml
|
||||
environment:
|
||||
# Autorise accès depuis LAN et Tailscale
|
||||
- FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/16,100.64.0.0/10
|
||||
# Port forwarding pour seeding
|
||||
- FIREWALL_VPN_INPUT_PORTS=51413
|
||||
```
|
||||
|
||||
## Caddy / Reverse Proxy
|
||||
|
||||
Les services sont exposés via Caddy avec Authelia SSO :
|
||||
|
||||
```caddyfile
|
||||
prowlarr.talloires.local, prowlarr.talloires.tailfd281f.ts.net {
|
||||
@api path /api/*
|
||||
handle @api {
|
||||
reverse_proxy gluetun:9696
|
||||
}
|
||||
handle {
|
||||
import authelia
|
||||
reverse_proxy gluetun:9696
|
||||
}
|
||||
import internal_tls
|
||||
}
|
||||
```
|
||||
|
||||
!!! info "API sans auth"
|
||||
Les endpoints `/api/*` sont accessibles sans Authelia pour permettre la communication inter-apps.
|
||||
|
||||
## Vérifications
|
||||
|
||||
@@ -95,7 +171,16 @@ Bibliothèques à ajouter :
|
||||
docker exec gluetun wget -qO- https://ipinfo.io
|
||||
```
|
||||
|
||||
Doit afficher une IP ProtonVPN (M247), pas ton IP réelle.
|
||||
Doit afficher une IP ProtonVPN (M247/Datacamp), pas ton IP réelle.
|
||||
|
||||
### Connectivité interne
|
||||
|
||||
```bash
|
||||
# Depuis gluetun, tester tous les services
|
||||
docker exec gluetun sh -c 'wget -qO- http://localhost:9696/ping' # Prowlarr
|
||||
docker exec gluetun sh -c 'wget -qO- http://localhost:8989/ping' # Sonarr
|
||||
docker exec gluetun sh -c 'wget -qO- http://localhost:7878/ping' # Radarr
|
||||
```
|
||||
|
||||
### Statut des containers
|
||||
|
||||
@@ -103,17 +188,11 @@ Doit afficher une IP ProtonVPN (M247), pas ton IP réelle.
|
||||
cd ~/lake/servarr && docker compose ps
|
||||
```
|
||||
|
||||
### Logs
|
||||
### Health check gluetun
|
||||
|
||||
```bash
|
||||
# Gluetun (VPN)
|
||||
docker logs gluetun --tail 50
|
||||
|
||||
# Transmission
|
||||
docker logs transmission --tail 50
|
||||
|
||||
# Radarr
|
||||
docker logs radarr --tail 50
|
||||
docker inspect gluetun --format='{{.State.Health.Status}}'
|
||||
# Doit retourner: healthy
|
||||
```
|
||||
|
||||
## Fichiers
|
||||
@@ -122,8 +201,10 @@ docker logs radarr --tail 50
|
||||
|---------|--------|
|
||||
| Docker Compose | `~/lake/servarr/docker-compose.yml` |
|
||||
| Environment | `~/lake/servarr/.env` |
|
||||
| Backup | `~/lake/servarr/docker-compose.yml.bak` |
|
||||
| Données | `/mnt/mediaserver/servarr/` |
|
||||
|
||||
## Historique
|
||||
|
||||
- **2026-01-12** : Migration complète — tous les services via VPN (network_mode: service:gluetun)
|
||||
- **2026-01-08** : Déploiement initial avec Gluetun, Transmission, Prowlarr, Radarr, Sonarr
|
||||
|
||||
Reference in New Issue
Block a user