forked from devflowinc/trieve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
201 lines (185 loc) · 5.57 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
version: "3"
services:
db:
image: paradedb/paradedb:0.3.10
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: vault
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- app-network
redis:
image: redis:7.2.2
container_name: my-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- app-network
command: redis-server --requirepass ${REDIS_PASSWORD}
script-redis:
image: redis:7.2.2
container_name: my-script-redis
restart: always
ports:
- "6380:6379"
volumes:
- script-redis-data:/data
networks:
- app-network
command: redis-server --requirepass ${REDIS_PASSWORD}
qdrant-database:
image: qdrant/qdrant:v1.3.2
environment:
- QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
ports:
- 6333:6333
- 6334:6334
volumes:
- qdrant_data:/qdrant/storage
networks:
- app-network
s3:
image: minio/minio:RELEASE.2023-09-27T15-22-50Z
ports:
- 9000:9000
- 42625:42625
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
healthcheck:
test: ["CMD", "curl", "-f", "http://s3:9000/minio/health/live"]
interval: 3s
timeout: 2s
retries: 10
volumes:
- s3-data:/data
command: server --console-address ":42625" /data
networks:
- app-network
s3-client:
image: minio/mc
depends_on:
s3:
condition: service_healthy
restart: on-failure
networks:
- app-network
entrypoint: >
/bin/sh -c "
mc config host add myminio http://s3:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
mc alias set myminio http://s3:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
mc admin user add myminio ${S3_ACCESS_KEY} ${S3_SECRET_KEY};
mc admin policy attach myminio readwrite --user ${S3_ACCESS_KEY};
mc mb myminio/${S3_BUCKET};
exit 0;
"
tika:
image: apache/tika:2.9.1.0-full
networks:
- app-network
ports:
- 9998:9998
server:
image: arguflow/server
build: ./server/
networks:
- app-network
ports:
- 8090:8090
volumes:
- ./server/images:/app/images
links:
- tika:tika
environment:
- REDIS_URL=${REDIS_URL}
- QDRANT_URL=${QDRANT_URL}
- QDRANT_API_KEY=${QDRANT_API_KEY}
- DATABASE_URL=${DATABASE_URL}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- SENDGRID_EMAIL_ADDRESS=${SENDGRID_EMAIL_ADDRESS}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- SECRET_KEY=${SECRET_KEY}
- SALT=${SALT}
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET=${S3_BUCKET}
- COOKIE_SECURE=${COOKIE_SECURE}
- ALERT_EMAIL=${ALERT_EMAIL}
- USE_EMBED_SERVER=${USE_EMBED_SERVER}
- DOCUMENT_UPLOAD_FEATURE=${DOCUMENT_UPLOAD_FEATURE}
- ONLY_ADMIN_CAN_CREATE_CARDS=${ONLY_ADMIN_CAN_CREATE_CARDS}
- RAG_PROMPT=${RAG_PROMPT}
- QDRANT_COLLECTION=${QDRANT_COLLECTION}
- PARSER_COMMAND=${PARSER_COMMAND}
- EMBEDDING_SERVER_CALL=${EMBEDDING_SERVER_CALL}
- EMBEDDING_SIZE=${EMBEDDING_SIZE}
- N_RETRIEVALS_TO_INCLUDE=${N_RETRIEVALS_TO_INCLUDE}
- ALWAYS_REQUIRE_AUTH=${ALWAYS_REQUIRE_AUTH}
- ADMIN_USER_EMAIL=${ADMIN_USER_EMAIL}
- ADMIN_USER_PASSWORD=${ADMIN_USER_PASSWORD}
- DUPLICATE_DISTANCE_THRESHOLD=${DUPLICATE_DISTANCE_THRESHOLD}
- OPENAI_BASE_URL=${OPENAI_BASE_URL}
- DOCUMENT_DOWNLOAD_FEATURE=${DOCUMENT_DOWNLOAD_FEATURE}
- TIKA_URL=${TIKA_URL}
chat:
image: arguflow/chat
build: ./chat/
networks:
- app-network
ports:
- 3000:3000
environment:
- VITE_FRONTMATTER_VALS=${VITE_FRONTMATTER_VALS}
- VITE_LINES_BEFORE_SHOW_MORE=${VITE_LINES_BEFORE_SHOW_MORE}
- VITE_DATASET=${DATASET}
- VITE_API_HOST=${VITE_API_HOST}
- VITE_SEARCH_URL=${VITE_SEARCH_URL}
- VITE_YOUTUBE_EMBED_URL=${VITE_YOUTUBE_EMBED_URL}
- VITE_PLAUSIBLE_HOST=${VITE_PLAUSIBLE_HOST}
- VITE_SHOW_GITHUB_STARS=${VITE_SHOW_GITHUB_STARS}
- VITE_CHAT_VOTE_FEATURE=${VITE_CHAT_VOTE_FEATURE}
search:
image: arguflow/search
build: ./search/
networks:
- app-network
ports:
- 3001:3000
environment:
- PUBLIC_API_HOST=${PUBLIC_API_HOST}
- PUBLIC_FILTER_ITEMS=${PUBLIC_FILTER_ITEMS}
- PUBLIC_CREATE_EVIDENCE_FEATURE=${PUBLIC_CREATE_EVIDENCE_FEATURE}
- PUBLIC_DOCUMENT_UPLOAD_FEATURE=${PUBLIC_DOCUMENT_UPLOAD_FEATURE}
- PUBLIC_SEARCH_QUERIES=${PUBLIC_SEARCH_QUERIES}
- PUBLIC_LUCKY_ITEMS=${PUBLIC_LUCKY_ITEMS}
- PUBLIC_FRONTMATTER_VALS=${PUBLIC_FRONTMATTER_VALS}
- PUBLIC_LINES_BEFORE_SHOW_MORE=${PUBLIC_LINES_BEFORE_SHOW_MORE}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- PLAUSIBLE_HOST=${PLAUSIBLE_HOST}
- DATASET=${DATASET}
- OG_DESCRIPTION=${OG_DESCRIPTION}
- PUBLIC_ALWAYS_REQUIRE_AUTH=${PUBLIC_ALWAYS_REQUIRE_AUTH}
- PUBLIC_IMAGE_RANGE_START_KEY=${PUBLIC_IMAGE_RANGE_START_KEY}
- PUBLIC_IMAGE_RANGE_END_KEY=${PUBLIC_IMAGE_RANGE_END_KEY}
- PUBLIC_DATE_RANGE_VALUE=${PUBLIC_DATE_RANGE_VALUE}
- PUBLIC_SHOW_GITHUB_STARS=${PUBLIC_SHOW_GITHUB_STARS}
- SUGGESTED_QUERIES=${SUGGESTED_QUERIES}
- PUBLIC_SEARCH_VOTE_FEATURE=${PUBLIC_SEARCH_VOTE_FEATURE}
networks:
app-network:
driver: bridge
volumes:
redis-data:
script-redis-data:
pgdata:
qdrant_data:
s3-data: