-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.55 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
services:
api:
build:
context: .
dockerfile: Dockerfile
args:
INSTALL_ML: ${INSTALL_ML:-false}
container_name: localscript-api
restart: unless-stopped
env_file:
- ${ENV_FILE:-.env}
ports:
- "8080:8080"
networks:
- internal_net
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- RETRIEVER_QDRANT_URL=http://qdrant:6333
depends_on:
ollama:
condition: service_healthy
required: false
qdrant:
condition: service_started
required: false
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health', timeout=5)"]
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
ollama:
image: ollama/ollama:latest
container_name: localscript-ollama
restart: unless-stopped
profiles:
- ollama
- full
networks:
- internal_net
ports:
- "11434:11434"
env_file:
- ${ENV_FILE:-.env}
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 20s
timeout: 10s
retries: 10
start_period: 30s
qdrant:
image: qdrant/qdrant:v1.14.1
container_name: localscript-qdrant
restart: unless-stopped
profiles:
- qdrant
- full
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
networks:
- internal_net
networks:
internal_net:
volumes:
ollama_data:
qdrant_data: