File size: 885 Bytes
b7dda8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: '3.8'

services:
  visaverse-chatbot:
    build:
      context: .
      dockerfile: Dockerfile
    image: vvchat:latest
    container_name: visaverse-chatbot
    restart: unless-stopped
    
    ports:
      - "7860:7860"
    
    volumes:
      # Persist FAQ and logs between container restarts
      - ./faqs.csv:/app/faqs.csv
      - ./question_limit_log.json:/app/question_limit_log.json
    
    environment:
      # Load from .env file
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      - ZILLIZ_URI=${ZILLIZ_URI}
      - ZILLIZ_TOKEN=${ZILLIZ_TOKEN}
      - ZILLIZ_COLLECTION=${ZILLIZ_COLLECTION:-visaverse_faqs3}
      - PYTHONDONTWRITEBYTECODE=1
      - PYTHONUNBUFFERED=1
    
    env_file:
      - .env
    
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:7860/docs"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s