This repository was archived by the owner on Apr 17, 2025. It is now read-only.
forked from danny-avila/LibreChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-compose-aws.yml
More file actions
99 lines (92 loc) · 2.34 KB
/
deploy-compose-aws.yml
File metadata and controls
99 lines (92 loc) · 2.34 KB
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
version: "3.8"
services:
api:
image: ${ECR_REGISTRY}/${ECR_REPOSITORY}:api-${IMAGE_TAG}
container_name: cognitiveiq-api
ports:
- 3080:3080
depends_on:
- mongodb
- rag_api
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/cognitiveiq
- MEILI_HOST=http://meilisearch:7700
- RAG_PORT=${RAG_PORT:-8000}
- RAG_API_URL=http://rag_api:${RAG_PORT:-8000}
volumes:
- ./librechat.yaml:/app/librechat.yaml
- ./images:/app/client/public/images
- ./logs:/app/api/logs
client:
image: ${ECR_REGISTRY}/${ECR_REPOSITORY}:client-${IMAGE_TAG}
container_name: cognitiveiq-nginx
ports:
- 80:80
- 443:443
- 8447:8447
depends_on:
- api
restart: always
volumes:
- ~/ssl:/etc/nginx/ssl:ro
mongodb:
container_name: cognitiveiq-mongodb
image: mongo
restart: always
volumes:
- ./data-node:/data/db
command: mongod --noauth
mongo-express:
image: mongo-express
container_name: mongo-express
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
ports:
- 8081:8081
depends_on:
- mongodb
restart: always
meilisearch:
container_name: cognitiveiq-meilisearch
image: getmeili/meilisearch:v1.7.3
restart: always
env_file:
- .env
environment:
- MEILI_HOST=http://meilisearch:7700
- MEILI_NO_ANALYTICS=true
volumes:
- ./meili_data_v1.7:/meili_data
vectordb:
image: ankane/pgvector:latest
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
restart: always
volumes:
- pgdata2:/var/lib/postgresql/data
rag_api:
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest
environment:
- DB_HOST=vectordb
- RAG_PORT=${RAG_PORT:-8000}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
depends_on:
- vectordb
env_file:
- .env
volumes:
pgdata2: