mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
version: "3.4"
|
||
|
||
# Do not edit this file directly. Use a ‘docker-compose.override.yaml’ file if you can.
|
||
# Refer to `docker-compose.override.yaml.example’ for some sample configurations.
|
||
|
||
services:
|
||
api:
|
||
container_name: LibreChat
|
||
ports:
|
||
- 3080:3080
|
||
depends_on:
|
||
- mongodb
|
||
image: librechat
|
||
build:
|
||
context: .
|
||
target: node
|
||
restart: always
|
||
user: "${UID}:${GID}"
|
||
extra_hosts:
|
||
- "host.docker.internal:host-gateway"
|
||
env_file:
|
||
- .env
|
||
environment:
|
||
- HOST=0.0.0.0
|
||
- MONGO_URI=mongodb://mongodb:27017/LibreChat
|
||
- MEILI_HOST=http://meilisearch:7700
|
||
volumes:
|
||
- /app/client/node_modules
|
||
- /app/api/node_modules
|
||
- ./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
|
||
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
|
||
env_file:
|
||
- .env
|
||
user: "${UID}:${GID}"
|
||
environment:
|
||
- MEILI_HOST=http://meilisearch:7700
|
||
- MEILI_NO_ANALYTICS=true
|
||
volumes:
|
||
- ./meili_data_v1.5:/meili_data
|