-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose-s.yml
More file actions
80 lines (75 loc) · 1.85 KB
/
Copy pathdocker-compose-s.yml
File metadata and controls
80 lines (75 loc) · 1.85 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
76
77
78
79
80
---
services:
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.27.0
ports:
- 8080:8080
- 3000:8080
- 50051:50051
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure:0
healthcheck:
test: wget --no-verbose --tries=3 --spider http://127.0.0.1:8080/v1/.well-known/ready || exit 1
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
environment:
QUERY_DEFAULTS_LIMIT: 50
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-ollama'
ENABLE_API_BASED_MODULES: 'true'
ENABLE_MODULES: 'generative-ollama,text2vec-ollama'
CLUSTER_HOSTNAME: 'node1'
updater:
build:
context: .
dockerfile: Dockerfile
environment:
- WEAVIATE_URL=http://weaviate:8080
- OLLAMA_URL=http://ollama:11434
- OLLAMA_MODEL=llama3.2
ports:
- 8000:8000
depends_on:
weaviate:
condition: service_healthy
volumes:
- updater:/data/
healthcheck:
test: wget --no-verbose --tries=3 --spider http://127.0.0.1:8000 || exit 1
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
ollama:
image: ollama/ollama
ports:
- "11434:11434" # Expose the port for Ollama
volumes:
- ollama:/root/.ollama # Persistent storage for Ollama data
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
count: all # Use 'all' for all available GPUs or specify a number
restart: always
volumes:
weaviate_data:
external: true
ollama:
external: true
updater:
external: true
...