fix: Réseau HOST pour MCP browser
🌐 CONFIGURATION RÉSEAU: • Mode: HOST NETWORK (plus de NAT Docker) • IP d'accès: 192.168.1.2:8000 • MCP browser: PEUT SE CONNECTER ✅ CHANGEMENTS: • docker-compose.yaml: network_mode: host • Suppression: ports: 3000:8000 (inutile) • Dashboard écoute sur: 0.0.0.0:8000 URLS D'ACCÈS: • MCP: http://192.168.1.2:8000 • Local: http://localhost:8000 • API: http://localhost:8000/docs AVANTAGES: • ✅ MCP peut se connecter au dashboard • ✅ Pas de NAT → meilleures perfs • ✅ Plus simple à déboguer TESTÉ: • MCP browser_navigate: SUCCESS • Page title: Bot Detector Dashboard • Health check: healthy • API: opérationnelle DOCUMENTATION: • NETWORK_CONFIG.md créé • URLs et commandes de test documentées Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -8,12 +8,11 @@ services:
|
||||
build: .
|
||||
container_name: dashboard_web
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:8000" # Dashboard web → http://localhost:3000
|
||||
|
||||
network_mode: "host"
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
|
||||
environment:
|
||||
# ClickHouse
|
||||
CLICKHOUSE_HOST: ${CLICKHOUSE_HOST:-clickhouse}
|
||||
@ -23,7 +22,7 @@ services:
|
||||
|
||||
# API
|
||||
API_PORT: 8000
|
||||
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user