-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
76 lines (70 loc) · 1.79 KB
/
docker-compose.yaml
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
version: '3.11'
services:
qdrant:
image: qdrant/qdrant:latest
restart: always
container_name: qdrant
ports:
- 6333:6333
- 6334:6334
expose:
- 6333
- 6334
- 6335
configs:
- source: qdrant_config
target: /qdrant/config/production.yaml
volumes:
- ./qdrant_data:/data
- ./docker-compose.env:/docker-compose.env:ro
env_file:
- path: ./.env
init_script:
build:
context: .
dockerfile: ./collection/Containerfile
volumes:
- ~/.config/gcloud:/root/.config/gcloud:ro
depends_on:
- qdrant
env_file:
- path: ./.env
environment:
- QDRANT_HOST=qdrant
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
streamlit_app:
build:
context: .
dockerfile: ./app/Containerfile
volumes:
- ~/.config/gcloud:/root/.config/gcloud:ro
ports:
- "8501:8501" # Expose the default Streamlit port
env_file:
- path: ./.env
environment:
- QDRANT_HOST=qdrant # Use the service name as the hostname for inter-service communication
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
depends_on:
- qdrant
- init_script
eval:
build:
context: .
dockerfile: ./evaluation/Containerfile
volumes:
- ~/.config/gcloud:/root/.config/gcloud:ro
env_file:
- path: ./.env
environment:
- QDRANT_HOST=qdrant # Use the service name as the hostname for inter-service communication
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
depends_on:
- qdrant
- init_script
volumes:
qdrant_data:
configs:
qdrant_config:
content: |
log_level: INFO