🌐 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>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# ───────────────────────────────────────────────────────────────────────────
|
|
# DASHBOARD WEB
|
|
# ───────────────────────────────────────────────────────────────────────────
|
|
dashboard_web:
|
|
build: .
|
|
container_name: dashboard_web
|
|
restart: unless-stopped
|
|
network_mode: "host"
|
|
|
|
env_file:
|
|
- .env
|
|
|
|
environment:
|
|
# ClickHouse
|
|
CLICKHOUSE_HOST: ${CLICKHOUSE_HOST:-clickhouse}
|
|
CLICKHOUSE_DB: ${CLICKHOUSE_DB:-mabase_prod}
|
|
CLICKHOUSE_USER: ${CLICKHOUSE_USER:-admin}
|
|
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-}
|
|
|
|
# API
|
|
API_PORT: 8000
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
|