-
Notifications
You must be signed in to change notification settings - Fork 716
/
docker-compose.yml
94 lines (85 loc) · 2.14 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
services:
verba:
build:
context: ./
dockerfile: Dockerfile
ports:
- 8000:8000
environment:
- WEAVIATE_URL_VERBA=http://weaviate:8080
- OPENAI_API_KEY=$OPENAI_API_KEY
- COHERE_API_KEY=$COHERE_API_KEY
- OLLAMA_URL=http://host.docker.internal:11434
- OLLAMA_MODEL=$OLLAMA_MODEL
- OLLAMA_EMBED_MODEL=$OLLAMA_EMBED_MODEL
- UNSTRUCTURED_API_KEY=$UNSTRUCTURED_API_KEY
- UNSTRUCTURED_API_URL=$UNSTRUCTURED_API_URL
- GITHUB_TOKEN=$GITHUB_TOKEN
volumes:
- ./data:/data/
depends_on:
weaviate:
condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=3 --spider http://localhost:8000 || exit 1
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
networks:
- ollama-docker
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: semitechnologies/weaviate:1.25.10
ports:
- 8080:8080
- 3000:8080
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure:0
healthcheck:
test: wget --no-verbose --tries=3 --spider http://localhost:8080/v1/.well-known/ready || exit 1
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
environment:
OPENAI_APIKEY: $OPENAI_API_KEY
COHERE_APIKEY: $COHERE_API_KEY
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
ENABLE_MODULES: 'e'
CLUSTER_HOSTNAME: 'node1'
networks:
- ollama-docker
# Uncomment to use Ollama within the same docker compose
# ollama:
# image: ollama/ollama:latest
# ports:
# - 7869:11434
# volumes:
# - .:/code
# - ./ollama/ollama:/root/.ollama
# container_name: ollama
# pull_policy: always
# tty: true
# restart: always
# environment:
# - OLLAMA_KEEP_ALIVE=24h
# - OLLAMA_HOST=0.0.0.0
# networks:
# - ollama-docker
volumes:
weaviate_data: {}
networks:
ollama-docker:
external: false
...