-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.07 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
36
37
version: '3.8'
services:
coderag:
build: .
container_name: coderag
ports:
- "8000:8000"
volumes:
# Mount your codebase here to index it
- ./repos:/repos:ro
# Mount source code for development
- ./src:/app/src
- ./frontend:/app/frontend
# Persist the index across restarts
- coderag-index:/app/data/index
environment:
# LLM Configuration (use Ollama running on host)
- CODERAG_LLM__PROVIDER=ollama
- CODERAG_LLM__MODEL_NAME=llama3
- CODERAG_LLM__BASE_URL=http://host.docker.internal:11434
# Smarter Brain (Jina Embeddings) - Reverted to MiniLM for stability
- CODERAG_EMBEDDING__MODEL_NAME=all-MiniLM-L6-v2
- CODERAG_EMBEDDING__TRUST_REMOTE_CODE=false
- CODERAG_EMBEDDING__QUERY_PREFIX=
- CODERAG_EMBEDDING__DEVICE=cpu
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/v1/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
coderag-index:
name: coderag-index