-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
171 lines (164 loc) · 4.31 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
services:
# scrape-azure-devops:
# build:
# context: ingestion/azure-devops-scrape
# dockerfile: Dockerfile
# env_file:
# - ingestion/.env
# environment:
# - SKIP_EXECUTION=false # skip if you have already ingested data locally
# volumes:
# - shared-data:/data
#
# filter-azure-devops:
# build:
# context: ingestion/azure-devops-filter
# dockerfile: Dockerfile
# volumes:
# - shared-data:/data
# environment:
# - SKIP_EXECUTION=false # skip if you have already ingested data locally
# depends_on:
# - scrape-azure-devops
#
# ingest-azure-devops:
# build:
# context: ingestion
# dockerfile: Dockerfile
# volumes:
# - shared-data:/data
# env_file:
# - ingestion/.env
# environment:
# - REDIS_HOST=redis
# - SKIP_EXECUTION=false # skip if you have already ingested data locally
# depends_on:
# - redis
# - filter-azure-devops
mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
chromadb:
image: ghcr.io/chroma-core/chroma:0.5.5
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=${PERSIST_DIRECTORY:-/chroma/chroma}
ports:
- "8000:8000"
volumes:
- chroma-data:/chroma/chroma/
# scrape-sharepoint:
# depends_on:
# - mongo
# - chromadb
# - redis
# build:
# context: ingestion/sharepoint-scrape
# dockerfile: Dockerfile
# environment:
# - SCRAPE_FOLDER_PATH=/data/sharepoint
# ports:
# - "10001:80"
# env_file:
# - ingestion/.env
# volumes:
# - shared-data:/data
# ingest-sharepoint:
# depends_on:
# - mongo
# - chromadb
# - redis
# # - scrape-sharepoint
# build:
# context: ingestion/sharepoint-ingest
# dockerfile: Dockerfile
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# ports:
# - "10002:80"
# env_file:
# - ingestion/.env
# volumes:
# - model_cache:/root/.cache/huggingface/transformers
# - shared-data:/data
# environment:
# - TRANSFORMERS_CACHE=/root/.cache/huggingface/transformers
# - CHROMA_HOST=host.docker.internal
# - CHROMA_PORT=8000
# - REDIS_HOST=host.docker.internal
# - REDIS_PORT=6379
# - CHROMA_COLLECTION_FULL_DOCS=sharepoint_full_docs
# - CHROMA_COLLECTION_CHUNKS=sharepoint_chunks
# - NVIDIA_VISIBLE_DEVICES=all
# - IS_PERSISTENT=TRUE
# - PERSIST_DIRECTORY=${PERSIST_DIRECTORY:-/chroma/chroma}
# - SCRAPE_FOLDER_PATH=/data/sharepoint
# command: [ "/app/wait_for_chromadb.sh", "host.docker.internal", "8000", "python", "app.py" ]
redis:
image: redis/redis-stack-server:latest
volumes:
- redis-data:/data
ports:
- 6379:6379
history_db:
image: postgres:16.3
container_name: postgres_db
environment:
POSTGRES_USER: chainlit
POSTGRES_PASSWORD: chainlit
POSTGRES_DB: chainlit
TZ: Europe/Copenhagen
volumes:
- db_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
# chainlit:
# build:
# context: chainlit
# dockerfile: Dockerfile
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# ports:
# - "9000:9000"
# env_file:
# - chainlit/src/.env
# volumes:
# - model_cache:/root/.cache/huggingface/transformers
# environment:
# - CHAINLIT_URL=http://localhost:9000
# - CHROMA_HOST=host.docker.internal
# - CHROMA_PORT=8000
# - REDIS_URL=redis://host.docker.internal:6379
# - REDIS_ADDRESS=host.docker.internal
# - REDIS_PORT=6379
# command: ["python", "-m", "chainlit", "run", "deployment_dev.py", "-h", "--port", "9000"]
volumes:
mongo_data:
driver: local
chroma-data:
driver: local
model_cache:
driver: local
redis-data:
driver: local
shared-data:
driver: local
db_data:
driver: local