File size: 684 Bytes
851f2ed
 
 
 
 
 
 
 
d9ce50a
 
851f2ed
695b33f
 
851f2ed
 
 
 
d9ce50a
851f2ed
 
 
 
 
 
 
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
version: '3.8'

services:
  cyberlegal-api:
    build: .
    container_name: cyberlegal-ai
    ports:
      - "8000:8000"  # API port only
    env_file:
      - .env  # Load environment variables from .env file
    environment:
      - LIGHTRAG_GRAPHS=romania:9621,bahrain:9622
      - LIGHTRAG_STORAGE_ROOT=data/rag_storage
      - LIGHTRAG_HOST=127.0.0.1
      - LIGHTRAG_PORT=9621
      - API_PORT=8000
    volumes:
      - ./data/rag_storage:/app/data/rag_storage  # Persist LightRAG data
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s