-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (56 loc) · 1.34 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
version: '3'
services:
postgres:
image: postgres:latest
container_name: postgres
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
- ./vectorizer/up.sql:/docker-entrypoint-initdb.d/up.sql
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: semitechnologies/weaviate:1.21.2
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure:0
environment:
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'none'
ENABLE_MODULES: 'text2vec-cohere,text2vec-huggingface,text2vec-palm,text2vec-openai,generative-openai,generative-cohere,generative-palm,ref2vec-centroid,reranker-cohere,qna-openai'
CLUSTER_HOSTNAME: 'node1'
vectorizer:
build:
context: ./vectorizer
dockerfile: Dockerfile
args:
GIT_REPO_URL: ${GIT_REPO_URL}
container_name: vectorizer
env_file:
- .env
depends_on:
- postgres
- weaviate
- server
server:
build:
context: ./server
dockerfile: Dockerfile
container_name: server
ports:
- '3000:3000'
env_file:
- .env
depends_on:
- postgres
- weaviate
volumes:
postgres_data:
weaviate_data: