# ═══════════════════════════════════════════════════════════ # OVERRIDE litellm — Ajoute LiteLLM + jean-proxy a la stack Effi # ‎ # Usage : # docker compose -f docker-compose.yml -f docker-compose.litellm.yml up -d litellm jean-proxy # ‎ # IMPORTANT : n ajoute QUE les services litellm + jean-proxy. # Les services existants (open-webui, wol-proxy, hermes, qdrant, ...) # ne sont PAS modifies, donc PAS de redemarrage involontaire. # ‎ # Une fois LiteLLM valide (curl :4000/v1/models), on pourra repointer # open-webui en passant OLLAMA_BASE_URL=http://litellm:4000 — mais c est # une etape de validation utilisateur, pas automatique. # ═══════════════════════════════════════════════════════════ services: # ───────────────────────────────────────────────────────── # 1. jean-proxy — Reverse-proxy vers Jean (.11:8080) + WOL # Clone du wol-proxy, meme MAC cible, port cible = 8080 # Ecoute :3012 sur le host (network_mode: host) # ───────────────────────────────────────────────────────── jean-proxy: build: ./jean-proxy container_name: jean-proxy restart: unless-stopped network_mode: host environment: - TARGET_HOST=${OLLAMA_HOST} - TARGET_PORT=8080 - TARGET_MAC=${PC_GAMING_MAC} - LISTEN_PORT=3012 - WAKE_TIMEOUT=60 - CHECK_INTERVAL=5 - BROADCAST_IP=${BROADCAST_IP} # ───────────────────────────────────────────────────────── # 2. LiteLLM proxy — Endpoint OpenAI unique pour open-webui # Ecoute :4000 sur le host (network_mode: host pour joindre # wol-proxy :3011 et jean-proxy :3012 sur le host) # ───────────────────────────────────────────────────────── litellm: image: ghcr.io/berriai/litellm:main-stable container_name: litellm restart: unless-stopped network_mode: host volumes: - ./litellm/config.yaml:/app/config.yaml:ro command: - "--config=/app/config.yaml" - "--port=4000" - "--num_workers=1"