29 lines
560 B
YAML
29 lines
560 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
container_name: legco_reranker
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- ./backend/.env
|
|
volumes:
|
|
- chroma_data:/app/chroma_db
|
|
- chunk_data:/app/document_chunk
|
|
- sqlite_data:/app/data
|
|
- uploads_data:/app/uploads
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
chroma_data:
|
|
chunk_data:
|
|
sqlite_data:
|
|
uploads_data:
|