mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
* 🗑️ chore: Remove unused Legacy Provider clients and related helpers * Deleted OpenAIClient and GoogleClient files along with their associated tests. * Removed references to these clients in the clients index file. * Cleaned up typedefs by removing the OpenAISpecClient export. * Updated chat controllers to use the OpenAI SDK directly instead of the removed client classes. * chore/remove-openapi-specs * 🗑️ chore: Remove unused mergeSort and misc utility functions * Deleted mergeSort.js and misc.js files as they are no longer needed. * Removed references to cleanUpPrimaryKeyValue in messages.js and adjusted related logic. * Updated mongoMeili.ts to eliminate local implementations of removed functions. * chore: remove legacy endpoints * chore: remove all plugins endpoint related code * chore: remove unused prompt handling code and clean up imports * Deleted handleInputs.js and instructions.js files as they are no longer needed. * Removed references to these files in the prompts index.js. * Updated docker-compose.yml to simplify reverse proxy configuration. * chore: remove unused LightningIcon import from Icons.tsx * chore: clean up translation.json by removing deprecated and unused keys * chore: update Jest configuration and remove unused mock file * Simplified the setupFiles array in jest.config.js by removing the fetchEventSource mock. * Deleted the fetchEventSource.js mock file as it is no longer needed. * fix: simplify endpoint type check in Landing and ConversationStarters components * Updated the endpoint type check to use strict equality for better clarity and performance. * Ensured consistency in the handling of the azureOpenAI endpoint across both components. * chore: remove unused dependencies from package.json and package-lock.json * chore: remove legacy EditController, associated routes and imports * chore: update banResponse logic to refine request handling for banned users * chore: remove unused validateEndpoint middleware and its references * chore: remove unused 'res' parameter from initializeClient in multiple endpoint files * chore: remove unused 'isSmallScreen' prop from BookmarkNav and NewChat components; clean up imports in ArchivedChatsTable and useSetIndexOptions hooks; enhance localization in PromptVersions * chore: remove unused import of Constants and TMessage from MobileNav; retain only necessary QueryKeys import * chore: remove unused TResPlugin type and related references; clean up imports in types and schemas
62 lines
2.3 KiB
YAML
62 lines
2.3 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: ..
|
|
dockerfile: .devcontainer/Dockerfile
|
|
# restart: always
|
|
links:
|
|
- mongodb
|
|
- meilisearch
|
|
# ports:
|
|
# - 3080:3080 # Change it to 9000:3080 to use nginx
|
|
extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
|
|
- ..:/workspaces:cached
|
|
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
|
|
# - /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- MONGO_URI=mongodb://mongodb:27017/LibreChat
|
|
# - OPENAI_REVERSE_PROXY=http://host.docker.internal:8070/v1
|
|
- MEILI_HOST=http://meilisearch:7700
|
|
|
|
# Runs app on the same network as the service container, allows "forwardPorts" in devcontainer.json function.
|
|
# network_mode: service:another-service
|
|
|
|
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
|
|
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
|
|
|
# Use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
|
|
user: vscode
|
|
|
|
# Overrides default command so things don't shut down after the process ends.
|
|
command: /bin/sh -c "while sleep 1000; do :; done"
|
|
|
|
mongodb:
|
|
container_name: chat-mongodb
|
|
expose:
|
|
- 27017
|
|
# ports:
|
|
# - 27018:27017
|
|
image: mongo
|
|
# restart: always
|
|
volumes:
|
|
- ./data-node:/data/db
|
|
command: mongod --noauth
|
|
meilisearch:
|
|
container_name: chat-meilisearch
|
|
image: getmeili/meilisearch:v1.5
|
|
# restart: always
|
|
expose:
|
|
- 7700
|
|
# Uncomment this to access meilisearch from outside docker
|
|
# ports:
|
|
# - 7700:7700 # if exposing these ports, make sure your master key is not the default value
|
|
environment:
|
|
- MEILI_NO_ANALYTICS=true
|
|
- MEILI_MASTER_KEY=5c71cf56d672d009e36070b5bc5e47b743535ae55c818ae3b735bb6ebfb4ba63
|
|
volumes:
|
|
- ./meili_data_v1.5:/meili_data
|