Upgrade local web gateway with structured YouTube support
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ARG MCP_PROXY_VERSION=0.12.0
|
||||
RUN pip install --no-cache-dir "mcp-proxy==${MCP_PROXY_VERSION}" "mcp>=1.17,<2"
|
||||
ARG YT_DLP_VERSION=2026.7.4
|
||||
RUN pip install --no-cache-dir \
|
||||
"mcp-proxy==${MCP_PROXY_VERSION}" \
|
||||
"mcp>=1.17,<2" \
|
||||
"yt-dlp==${YT_DLP_VERSION}"
|
||||
|
||||
RUN useradd --system --uid 10001 --create-home --home-dir /app mcp
|
||||
COPY web-search/web_search_mcp.py /app/web_search_mcp.py
|
||||
|
||||
@@ -30,10 +30,17 @@ services:
|
||||
environment:
|
||||
TINYSEARCH_MCP_URL: http://tinysearch:8000/mcp
|
||||
SEARXNG_URL: http://searxng:8080
|
||||
WEB_SEARCH_BUDGET_MAX_RELATED: "6"
|
||||
WEB_SEARCH_BUDGET_MAX_RELATED: "3"
|
||||
YOUTUBE_TIMEOUT: "45"
|
||||
depends_on:
|
||||
tinysearch:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('127.0.0.1', 8000), 2); s.close()"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
|
||||
searxng:
|
||||
<<: *tool-common
|
||||
|
||||
Reference in New Issue
Block a user