Spaces:
Sleeping
Sleeping
File size: 784 Bytes
e2e0c18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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
|