-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.27 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
version: "3.9"
services:
ollama:
image: ollama/ollama:latest
container_name: research_ollama
ports:
- "11434:11434"
volumes:
- ollama_models:/root/.ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: unless-stopped
backend:
build: ./backend
container_name: research_backend
ports:
- "8000:8000"
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.2}
- LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.1}
- MAX_URLS=${MAX_URLS:-10}
- FETCH_TIMEOUT=${FETCH_TIMEOUT:-10}
- MAX_TEXT_CHARS=${MAX_TEXT_CHARS:-4000}
depends_on:
ollama:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: unless-stopped
frontend:
build: ./frontend
container_name: research_frontend
ports:
- "8501:8501"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
ollama_models: