# docker-compose.client.yml - Configuration pour clients
version: '3.8'

services:
  web-sentinel:
    build: .
    image: web-sentinel:latest
    container_name: web-sentinel-cli
    volumes:
      # Persistance des rapports et historique
      - ./data:/data
      # Configuration client (optionnel)
      - ./config:/app/config:ro
    environment:
      - WEB_SENTINEL_HISTORY_FILE=/data/history.json
      - WEB_SENTINEL_LOG_FILE=/data/web-sentinel.log
    # Exemple d'utilisation: 
    # docker-compose -f docker-compose.client.yml run web-sentinel example.com --json-report /data/report.json
    
  # Service pour les rapports web (optionnel)
  web-sentinel-reports:
    build: .
    image: web-sentinel:latest
    container_name: web-sentinel-reports
    ports:
      - "8080:8080"
    volumes:
      - ./data:/data:ro
    command: ["python", "-m", "http.server", "8080", "--directory", "/data"]
    # Sert les rapports HTML sur http://localhost:8080