Spaces:
Running

File size: 1,140 Bytes
9c30f2e
 
 
 
 
 
 
4244820
9c30f2e
 
 
 
 
 
 
 
dd1eee1
 
 
9c30f2e
 
 
 
 
 
 
 
 
 
 
 
4244820
9c30f2e
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
  ioc-core:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: ioc-core-api
    ports:
      - "8000:7860"
    environment:
      # API Keys (loaded from .env file)
      - VIRUS_TOTAL_API_KEY=${VIRUS_TOTAL_API_KEY}
      - ABUSE_IP_DB_API_KEY=${ABUSE_IP_DB_API_KEY}
      - URL_SCAN_API_KEY=${URL_SCAN_API_KEY:-}
      - ABUSE_CH_API_KEY=${ABUSE_CH_API_KEY:-}
      - OTX_API_KEY=${OTX_API_KEY:-}
      - HF_API_TOKEN=${HF_API_TOKEN:-}
      # Supabase Dashboard
      - SUPABASE_URL=${SUPABASE_URL:-}
      - SUPABASE_KEY=${SUPABASE_KEY:-}
      # Server Configuration
      - HOST=0.0.0.0
      - PORT=8000
      - WORKERS=${WORKERS:-2}
      # CORS Configuration
      - CORS_ORIGINS=${CORS_ORIGINS:-*}
      # Logging
      - LOG_LEVEL=${LOG_LEVEL:-INFO}
    env_file:
      - .env
    restart: unless-stopped
    healthcheck:
      test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:7860/')" ]
      interval: 30s
      timeout: 10s
      start_period: 10s
      retries: 3
    networks:
      - ioc-network

networks:
  ioc-network:
    driver: bridge