-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (48 loc) · 1.17 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
version: '3.4'
services:
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: semitechnologies/weaviate:1.21.4
ports:
- 8080:8080
restart: on-failure:0
environment:
OPENAI_APIKEY: $OPENAI_APIKEY
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-openai'
ENABLE_MODULES: 'text2vec-openai,generative-openai'
CLUSTER_HOSTNAME: 'node1'
volumes:
- ./weaviate-data:/var/lib/weaviate # Este é o mapeamento: diretório_local:diretório_no_container
flask-app:
build: .
command: ["python", "app.py"]
ports:
- 5000:5000
environment:
OPENAI_API_KEY: $OPENAI_APIKEY
WEAVIATE_URL: $WEAVIATE_URL
WEAVIATE_API_KEY: $WEAVIATE_API_KEY
TWILIO_SID: $TWILIO_SID
TWILIO_TOKEN: $TWILIO_TOKEN
depends_on:
- weaviate
volumes:
- ./app:/app
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- 1337:80
- 443:443
depends_on:
- flask-app