* chore: bump vite, vitejs/plugin-react, mark client package as esm, move react-query as a peer dep in data-provider * chore: import changes due to new data-provider export strategy, also fix type imports where applicable * chore: export react-query services as separate to avoid react dependencies in /api/ * chore: suppress sourcemap warnings and polyfill node:path which is used by filenamify TODO: replace filenamify with an alternative and REMOVE polyfill * chore: /api/ changes to support `librechat-data-provider` * refactor: rewrite Dockerfile.multi in light of /api/ changes to support `librechat-data-provider` * chore: remove volume mapping to node_modules directories in default compose file * chore: remove schemas from /api/ as is no longer needed with use of `librechat-data-provider` * fix(ci): jest `librechat-data-provider/react-query` module resolution
71 lines
2.4 KiB
YAML
71 lines
2.4 KiB
YAML
version: "3.4"
|
|
|
|
services:
|
|
# client:
|
|
# image: nginx-client
|
|
# build:
|
|
# context: .
|
|
# target: nginx-client
|
|
# restart: always
|
|
# ports:
|
|
# - 3080:80
|
|
# volumes:
|
|
# - /client/node_modules
|
|
# depends_on:
|
|
# - api
|
|
api:
|
|
container_name: LibreChat
|
|
ports:
|
|
- 3080:3080 # Change it to 9000:3080 to use nginx
|
|
depends_on:
|
|
- mongodb
|
|
image: librechat # Comment this & uncomment below to build from docker hub image
|
|
build: # ^------
|
|
context: . # ^------
|
|
target: node # ^------v
|
|
# image: ghcr.io/danny-avila/librechat:latest # Uncomment this & comment above to build from docker hub image
|
|
restart: always
|
|
user: "${UID}:${GID}"
|
|
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"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- MONGO_URI=mongodb://mongodb:27017/LibreChat
|
|
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy with docker
|
|
# - OPENAI_REVERSE_PROXY=http://host.docker.internal:8070/v1/chat/completions # if you are hosting your own chatgpt reverse proxy with docker
|
|
- MEILI_HOST=http://meilisearch:7700
|
|
- MEILI_HTTP_ADDR=meilisearch:7700
|
|
volumes:
|
|
- ./api:/app/api
|
|
- ./.env:/app/.env
|
|
- ./.env.development:/app/.env.development
|
|
- ./.env.production:/app/.env.production
|
|
- ./images:/app/client/public/images
|
|
mongodb:
|
|
container_name: chat-mongodb
|
|
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
|
|
# - 27018:27017
|
|
image: mongo
|
|
restart: always
|
|
user: "${UID}:${GID}"
|
|
volumes:
|
|
- ./data-node:/data/db
|
|
command: mongod --noauth
|
|
meilisearch:
|
|
container_name: chat-meilisearch
|
|
image: getmeili/meilisearch:v1.5
|
|
restart: always
|
|
# ports: # Uncomment this to access meilisearch from outside docker
|
|
# - 7700:7700 # if exposing these ports, make sure your master key is not the default value
|
|
env_file:
|
|
- .env
|
|
user: "${UID}:${GID}"
|
|
environment:
|
|
- MEILI_HOST=http://meilisearch:7700
|
|
- MEILI_HTTP_ADDR=meilisearch:7700
|
|
- MEILI_NO_ANALYTICS=true
|
|
volumes:
|
|
- ./meili_data_v1.5:/meili_data
|