-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (67 loc) · 2.21 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
version: '3.4'
services:
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.22.2
volumes:
- /var/weaviate:/var/lib/weaviate
ports:
- 8080:8080
- 50051:50051 #gRPC port
restart: on-failure:0
environment:
CLUSTER_HOSTNAME: 'node1'
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'false'
AUTHENTICATION_APIKEY_ENABLED: 'true'
AUTHENTICATION_APIKEY_USERS: 'api_testkey'
AUTHENTICATION_APIKEY_ALLOWED_KEYS: '${WEAVIATE_APIKEY}'
ENABLE_MODULES: 'text2vec-transformers'
DEFAULT_VECTORIZER_MODULE: 'text2vec-transformers'
TRANSFORMERS_PASSAGE_INFERENCE_API: 'http://t2v-transformers-passage:8080'
TRANSFORMERS_QUERY_INFERENCE_API: 'http://t2v-transformers-query:8080'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
QUERY_DEFAULTS_LIMIT: 25
t2v-transformers-passage:
image: semitechnologies/transformers-inference:facebook-dpr-ctx_encoder-single-nq-base
environment:
ENABLE_CUDA: '0'
t2v-transformers-query:
image: semitechnologies/transformers-inference:facebook-dpr-question_encoder-single-nq-base
environment:
ENABLE_CUDA: '0'
retriever:
build:
context: ./askem/retriever
dockerfile: Dockerfile
ports:
- 4502:4502
environment:
WEAVIATE_URL: '${WEAVIATE_URL}'
WEAVIATE_APIKEY: '${WEAVIATE_APIKEY}'
WEAVIATE_CLASS_NAME: '${WEAVIATE_CLASS_NAME}'
RETRIEVER_URL: '${RETRIEVER_URL}'
RETRIEVER_APIKEY: '${RETRIEVER_APIKEY}'
HYBRID_SEARCH_XDD_URL: '${HYBRID_SEARCH_XDD_URL}'
OPENAI_API_KEY: '${OPENAI_API_KEY}'
OPENAI_ORGANIZATION: '${OPENAI_ORGANIZATION}'
demo:
build:
context: ./askem/demo
dockerfile: Dockerfile
ports:
- 8501:8501
environment:
OPENAI_API_KEY: '${OPENAI_API_KEY}'
OPENAI_ORGANIZATION: '${OPENAI_ORGANIZATION}'
RETRIEVER_URL: '${RETRIEVER_URL}'
RETRIEVER_APIKEY: '${RETRIEVER_APIKEY}'
COSMOS_URL: '${COSMOS_URL}'
DEMO_SALT: '${DEMO_SALT}'
DEMO_HASHED_PASSWORD: '${DEMO_HASHED_PASSWORD}'
DEBUG: 1