-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.46 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
version: "3.9"
services:
# ── Ollama LLM Server ──────────────────────────────────────────────────────
ollama:
image: ollama/ollama:latest
container_name: rag-ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
# ── FastAPI Backend ────────────────────────────────────────────────────────
backend:
build: .
container_name: rag-backend
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ./vector_db:/app/vector_db
environment:
- RAG_API_KEY=rag-secret-key-2024
- OLLAMA_HOST=http://ollama:11434
depends_on:
- ollama
command: uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload
restart: unless-stopped
# ── Streamlit Frontend ─────────────────────────────────────────────────────
frontend:
build: .
container_name: rag-frontend
ports:
- "8501:8501"
environment:
- API_BASE_URL=http://backend:8000
depends_on:
- backend
command: streamlit run frontend/app.py --server.address 0.0.0.0 --server.port 8501
restart: unless-stopped
volumes:
ollama_data: