version: '3.8' services: phishing-api: build: context: . dockerfile: Dockerfile container_name: phishing-detection-api ports: - "8000:8000" environment: - PYTHONUNBUFFERED=1 - PYTHONDONTWRITEBYTECODE=1 # Add your GROQ_API_KEY here or use .env file - GROQ_API_KEY=${GROQ_API_KEY:-your-api-key-here} volumes: # Optional: Mount models directory if you want to update models without rebuilding # - ./models:/app/models:ro # - ./finetuned_bert:/app/finetuned_bert:ro # - ./Message_model:/app/Message_model:ro restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s