Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 2.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (87 loc) · 2.38 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
chromadb:
# Must match the Python chromadb package version (see requirements-docker.txt).
image: chromadb/chroma:0.6.3
container_name: agent_chromadb
environment:
- IS_PERSISTENT=TRUE
volumes:
- ./data/chroma_db:/chroma/chroma
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: agent_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
backend:
build: .
image: codenavigator:app
container_name: agent_backend
command: ["gunicorn", "app.main:app", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--timeout", "120", "--graceful-timeout", "30"]
ports:
- "8000:8000"
env_file:
- .env
environment:
- CHROMA_HOST=chromadb
- CHROMA_PORT=8000
- REDIS_URL=redis://redis:6379/0
- REPOS_PATH=/app/data/repos
- GRAPH_STORE_PATH=/app/data/graph_store
- HF_HOME=/app/data/huggingface
- TRANSFORMERS_CACHE=/app/data/huggingface
volumes:
- ./data:/app/data
- bm25_data:/app/bm25_index
- ./app:/app/app
depends_on:
- chromadb
- redis
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
worker:
image: codenavigator:app
container_name: agent_worker
command: ["celery", "-A", "app.tasks.celery_app", "worker", "-l", "info", "-Q", "ingestion", "--concurrency", "1"]
env_file:
- .env
environment:
- CHROMA_HOST=chromadb
- CHROMA_PORT=8000
- REDIS_URL=redis://redis:6379/0
- REPOS_PATH=/app/data/repos
- GRAPH_STORE_PATH=/app/data/graph_store
- HF_HOME=/app/data/huggingface
- TRANSFORMERS_CACHE=/app/data/huggingface
volumes:
- ./data:/app/data
- bm25_data:/app/bm25_index
- ./app:/app/app
depends_on:
- redis
- chromadb
restart: unless-stopped
frontend:
build:
context: ./frontend-next
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000
NEXT_PUBLIC_API_KEY: ${API_KEY:-dev-secret-key}
container_name: agent_frontend
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
redis_data:
bm25_data: