visaverse-chatbot / docker-compose.yml
shakauthossain's picture
Updated IRCC Fetching
b7dda8e
raw
history blame contribute delete
885 Bytes
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