-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.02 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
services:
rag-app:
build: .
ports:
- "8000:8000"
volumes:
- ./app/data/docs:/app/data/docs
- chroma_data:/app/app/vector_db/chroma_store
environment:
- LLM_BASE_URL=http://ollama:11434
- PYTHONPATH=/home/appuser/.local/lib/python3.11/site-packages
- PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/appuser/.local/bin
- PYTHONUNBUFFERED=1
depends_on:
ollama:
condition: service_healthy
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 5s
timeout: 3s
retries: 10
start_period: 900s
entrypoint: >
sh -c '
ollama serve &
SERVER_PID=$!
sleep 2
if ! ollama list | grep -q phi3:mini; then
ollama pull phi3:mini
fi
wait $$SERVER_PID
'
restart: unless-stopped
volumes:
ollama_data:
chroma_data: