-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 1.01 KB
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
services:
backend:
build:
context: ./backend
ports:
- "${BACKEND_PORT:-8000}:8000"
env_file:
- path: ./backend/.env
required: false
environment:
CHROMA_PERSIST_DIR: /var/data/chroma
DOCUMIND_DENSE_ENABLED: "${DOCUMIND_DENSE_ENABLED:-false}"
DOCUMIND_BM25_ENABLED: "${DOCUMIND_BM25_ENABLED:-true}"
DOCUMIND_BM25_MAX_DOCS: "${DOCUMIND_BM25_MAX_DOCS:-5000}"
DOCUMIND_WARM_RETRIEVER_ON_STARTUP: "${DOCUMIND_WARM_RETRIEVER_ON_STARTUP:-false}"
DOCUMIND_MAX_UPLOAD_MB: "${DOCUMIND_MAX_UPLOAD_MB:-20}"
GROQ_MODEL: "${GROQ_MODEL:-llama-3.1-8b-instant}"
volumes:
- documind_chroma:/var/data/chroma
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3).read()",
]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
restart: unless-stopped
volumes:
documind_chroma: