-
Notifications
You must be signed in to change notification settings - Fork 12
/
compose.librechat.yml
90 lines (86 loc) · 3.01 KB
/
compose.librechat.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
services:
librechat:
container_name: ${HARBOR_CONTAINER_PREFIX}.librechat
ports:
- "${HARBOR_LIBRECHAT_HOST_PORT}:${HARBOR_LIBRECHAT_HOST_PORT}"
depends_on:
- lcdb
- lcrag
image: ghcr.io/danny-avila/librechat-dev:latest
networks:
- harbor-network
env_file: ./.env
environment:
- HOST=0.0.0.0
- PORT=${HARBOR_LIBRECHAT_HOST_PORT}
- MONGO_URI=mongodb://lcdb:27017/LibreChat
- MEILI_HOST=http://lcsearch:7700
- RAG_PORT=${HARBOR_LIBRECHAT_RAG_HOST_PORT}
- RAG_API_URL=http://lcrag:${HARBOR_LIBRECHAT_RAG_HOST_PORT}
- ANYSCALE_API_KEY=${HARBOR_ANYSCALE_KEY:-user_provided}
- APIPIE_API_KEY=${HARBOR_APIPIE_KEY:-user_provided}
- COHERE_API_KEY=${HARBOR_COHERE_KEY:-user_provided}
- FIREWORKS_API_KEY=${HARBOR_FIREWORKS_API_KEY:-user_provided}
- GROQ_API_KEY=${HARBOR_GROQ_KEY:-user_provided}
- HUGGINGFACE_TOKEN=${HARBOR_HF_TOKEN:-user_provided}
- MISTRAL_API_KEY=${HARBOR_MISTRAL_KEY:-user_provided}
- OPENROUTER_KEY=${HARBOR_OPENROUTER_KEY:-user_provided}
- PERPLEXITY_API_KEY=${HARBOR_PERPLEXITY_KEY:-user_provided}
- SHUTTLEAI_API_KEY=${HARBOR_SHUTTLEAI_KEY:-user_provided}
- TOGETHERAI_API_KEY=${HARBOR_TOGETHERAI_KEY:-user_provided}
- ANTHROPIC_API_KEY=${HARBOR_ANTHROPIC_KEY:-user_provided}
- BINGAI_TOKEN=${HARBOR_BINGAI_TOKEN:-user_provided}
- GOOGLE_KEY=${HARBOR_GOOGLE_KEY:-user_provided}
- OPENAI_API_KEY=${HARBOR_OPENAI_KEY:-user_provided}
- ASSISTANTS_API_KEY=${HARBOR_ASSISTANTS_KEY:-user_provided}
volumes:
- type: bind
source: ./librechat/.env
target: /app/.env
- ./librechat/librechat.yml:/app/librechat.yaml
- ./librechat/images:/app/client/public/images
- ./librechat/logs:/app/api/logs
lcdb:
container_name: ${HARBOR_CONTAINER_PREFIX}.lcdb
image: mongo
volumes:
- ./librechat/data:/data/db
command: mongod --noauth
networks:
- harbor-network
lcsearch:
container_name: ${HARBOR_CONTAINER_PREFIX}.lcsearch
image: getmeili/meilisearch:v1.7.3
environment:
- MEILI_HOST=http://lcsearch:7700
- MEILI_NO_ANALYTICS=true
volumes:
- ./librechat/meili_data_v1.7:/meili_data
networks:
- harbor-network
lcvector:
container_name: ${HARBOR_CONTAINER_PREFIX}.lcvector
image: ankane/pgvector:latest
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
volumes:
- ./librechat/vectordb:/var/lib/postgresql/data
networks:
- harbor-network
lcrag:
container_name: ${HARBOR_CONTAINER_PREFIX}.lcrag
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest
environment:
- DB_HOST=lcvector
- RAG_PORT=${HARBOR_LIBRECHAT_RAG_HOST_PORT}
- EMBEDDINGS_PROVIDER=ollama
- OLLAMA_BASE_URL=${HARBOR_OLLAMA_INTERNAL_URL}
- EMBEDDINGS_MODEL=nomic-embed-text
depends_on:
- lcvector
env_file:
- .env
networks:
- harbor-network