forked from ragapp/ragapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.46 KB
/
docker-compose.yml
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
services:
qdrant:
image: qdrant/qdrant:latest
ports:
- 6333:6333
- 6334:6334
networks:
- ragapp-network
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
volumes:
- ./ollama:/root/.ollama
networks:
- ragapp-network
setup:
image: curlimages/curl:latest
networks:
- ragapp-network
volumes:
- ./scripts:/ragapp
environment:
- MODEL=${MODEL:-phi3:latest}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://ollama:11434}
- QDRANT_URL=http://qdrant:6333
- COLLECTION_NAME=default
- DISTANCE_METRIC=Cosine
- VECTOR_SIZE=768
command: >
/bin/sh -c
"chmod +x /ragapp/create_qdrant_collection.sh /ragapp/setup_ollama.sh &&
/ragapp/create_qdrant_collection.sh &&
/ragapp/setup_ollama.sh"
depends_on:
- qdrant
- ollama
ragapp:
build: .
image: ragapp/ragapp:latest
ports:
- "8000:8000"
volumes:
- ./config:/app/config
- ./data:/app/data
environment:
- VECTOR_STORE_PROVIDER=qdrant
- QDRANT_URL=http://qdrant:6333
- QDRANT_COLLECTION=default
- QDRANT_API_KEY=""
- MODEL_PROVIDER=ollama
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://ollama:11434}
- EMBEDDING_MODEL=nomic-embed-text
- EMBEDDING_DIM=768
- MODEL=${MODEL:-phi3:latest}
depends_on:
- setup
networks:
- ragapp-network
networks:
ragapp-network: