Refactor docker-compose.yml for consistency and add new services; update librechat.yaml with additional model references and configuration adjustments.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
container_name: LibreChat
|
container_name: librechat
|
||||||
ports:
|
ports:
|
||||||
- "${PORT}:${PORT}"
|
- "${PORT}:${PORT}"
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -24,17 +24,36 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ./.env
|
source: ./.env
|
||||||
target: /app/.env
|
target: /app/.env
|
||||||
|
- ./librechat.yaml:/app/librechat.yaml
|
||||||
- ./images:/app/client/public/images
|
- ./images:/app/client/public/images
|
||||||
- ./uploads:/app/uploads
|
- ./uploads:/app/uploads
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
|
client:
|
||||||
|
image: nginx:1.27.0-alpine
|
||||||
|
container_name: librechat-nginx
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
- 443
|
||||||
|
depends_on:
|
||||||
|
- api
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
|
- edge-little
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
mongodb:
|
mongodb:
|
||||||
container_name: chat-mongodb
|
container_name: librechat-mongodb
|
||||||
image: mongo
|
image: mongo
|
||||||
restart: always
|
restart: always
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data-node:/data/db
|
- ./data-node:/data/db
|
||||||
command: mongod --noauth
|
command: mongod --noauth
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
meilisearch:
|
meilisearch:
|
||||||
container_name: chat-meilisearch
|
container_name: chat-meilisearch
|
||||||
image: getmeili/meilisearch:v1.12.3
|
image: getmeili/meilisearch:v1.12.3
|
||||||
@@ -46,8 +65,10 @@ services:
|
|||||||
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
||||||
volumes:
|
volumes:
|
||||||
- ./meili_data_v1.12:/meili_data
|
- ./meili_data_v1.12:/meili_data
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
vectordb:
|
vectordb:
|
||||||
container_name: vectordb
|
container_name: librechat-vectordb
|
||||||
image: pgvector/pgvector:0.8.0-pg15-trixie
|
image: pgvector/pgvector:0.8.0-pg15-trixie
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: mydatabase
|
POSTGRES_DB: mydatabase
|
||||||
@@ -55,9 +76,11 @@ services:
|
|||||||
POSTGRES_PASSWORD: mypassword
|
POSTGRES_PASSWORD: mypassword
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata2:/var/lib/postgresql/data
|
- librechat-pgdata:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
rag_api:
|
rag_api:
|
||||||
container_name: rag_api
|
container_name: librechat-rag_api
|
||||||
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest
|
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest
|
||||||
environment:
|
environment:
|
||||||
- DB_HOST=vectordb
|
- DB_HOST=vectordb
|
||||||
@@ -65,8 +88,17 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- vectordb
|
- vectordb
|
||||||
|
networks:
|
||||||
|
- chat-net
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata2:
|
librechat-pgdata:
|
||||||
|
external: true
|
||||||
|
networks:
|
||||||
|
chat-net:
|
||||||
|
driver: bridge
|
||||||
|
name: chat-net
|
||||||
|
edge-little:
|
||||||
|
external: true
|
||||||
@@ -284,15 +284,51 @@ endpoints:
|
|||||||
baseURL: 'http://llm.toy'
|
baseURL: 'http://llm.toy'
|
||||||
models:
|
models:
|
||||||
default:
|
default:
|
||||||
|
- 'claude-sonnet-4-5'
|
||||||
|
- 'claude-opus-4-5'
|
||||||
|
- 'claude-haiku-4-5'
|
||||||
|
- 'rerank-v3.5'
|
||||||
|
- 'deepgram/base'
|
||||||
|
- 'deepgram/nova-3'
|
||||||
|
- 'deepgram/nova-3-general'
|
||||||
|
- 'deepgram/whisper'
|
||||||
|
- 'deepgram/whisper-base'
|
||||||
|
- 'deepgram/whisper-large'
|
||||||
|
- 'deepgram/whisper-medium'
|
||||||
|
- 'deepgram/whisper-small'
|
||||||
|
- 'deepgram/whisper-tiny'
|
||||||
|
- 'elevenlabs/scribe_v1'
|
||||||
|
- 'fireworks_ai/glm-4p7'
|
||||||
|
- 'gemini/imagen-4.0-ultra-generate-001'
|
||||||
|
- 'ollama/gpt-oss:20b'
|
||||||
|
- 'gpt-5.2'
|
||||||
|
- 'gemini/gemini-3-pro-preview'
|
||||||
|
- 'gemini/gemini-3-flash-preview'
|
||||||
|
- 'gpt-realtime-mini'
|
||||||
|
- 'text-embedding-3-large'
|
||||||
|
- 'text-embedding-3-small'
|
||||||
- 'fireworks_ai/deepseek-v3p2'
|
- 'fireworks_ai/deepseek-v3p2'
|
||||||
fetch: true
|
- 'fireworks_ai/kimi-k2-instruct'
|
||||||
|
- 'gpt-realtime'
|
||||||
|
- 'tts-1'
|
||||||
|
- 'tts-1-hd'
|
||||||
|
- 'whisper-1'
|
||||||
|
- 'fireworks_ai/qwen3-vl-235b-a22b-instruct'
|
||||||
|
- 'fireworks_ai/gpt-oss-120b'
|
||||||
|
- 'fireworks_ai/minimax-m2p1'
|
||||||
|
- 'gemini/imagen-4.0-generate-001'
|
||||||
|
- 'gemini/imagen-4.0-fast-generate-001'
|
||||||
|
- 'fireworks_ai/glm-4p6'
|
||||||
|
- 'fireworks_ai/kimi-k2-thinking'
|
||||||
|
- 'fireworks_ai/qwen3-vl-235b-a22b-thinking'
|
||||||
|
fetch: false
|
||||||
titleConvo: true
|
titleConvo: true
|
||||||
titleModel: 'fireworks_ai/qwen3-vl-30b-a3b-instruct'
|
titleModel: 'fireworks_ai/gpt-oss-120b'
|
||||||
modelDisplayLabel: 'LLM'
|
modelDisplayLabel: 'LLM'
|
||||||
# Summarize setting: Set to true to enable summarization.
|
# Summarize setting: Set to true to enable summarization.
|
||||||
summarize: true
|
summarize: true
|
||||||
# Summary Model: Specify the model to use if summarization is enabled.
|
# Summary Model: Specify the model to use if summarization is enabled.
|
||||||
summaryModel: "fireworks_ai/qwen3-vl-30b-a3b-instruct" # Defaults to "gpt-3.5-turbo" if omitted.
|
summaryModel: "fireworks_ai/qwen3-vl-235b-a22b-instruct" # Defaults to "gpt-3.5-turbo" if omitted.
|
||||||
# Force Prompt setting: If true, sends a `prompt` parameter instead of `messages`.
|
# Force Prompt setting: If true, sends a `prompt` parameter instead of `messages`.
|
||||||
forcePrompt: false
|
forcePrompt: false
|
||||||
dropParams: ['stop', 'user', 'frequency_penalty', 'presence_penalty']
|
dropParams: ['stop', 'user', 'frequency_penalty', 'presence_penalty']
|
||||||
|
|||||||
Reference in New Issue
Block a user