mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
update: docker-compose.yaml 🐋 (#1341)
This commit is contained in:
parent
ff59a2e41d
commit
072a7e5f05
2 changed files with 77 additions and 26 deletions
67
docker-compose.override.yaml
Normal file
67
docker-compose.override.yaml
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
# # TO USE THIS FILE, FIRST UNCOMMENT THE FOLLOWING LINE ('services:')
|
||||||
|
|
||||||
|
# services:
|
||||||
|
|
||||||
|
# # THEN UNCOMMENT ONLY THE SECTION OR SECTIONS CONTAINING THE CHANGES YOU WANT TO APPLY
|
||||||
|
# # SAVE THIS FILE AS 'docker-compose.override.yaml'
|
||||||
|
# # AND USE THE 'docker-compose build' & 'docker-compose up -d' COMMANDS AS YOU WOULD NORMALLY DO
|
||||||
|
|
||||||
|
# # BUILD FROM LATEST IMAGE
|
||||||
|
# api:
|
||||||
|
# image: ghcr.io/danny-avila/librechat-dev:latest
|
||||||
|
|
||||||
|
# # BUILD FROM LATEST IMAGE (NUMBERED RELEASE)
|
||||||
|
# api:
|
||||||
|
# image: ghcr.io/danny-avila/librechat:latest
|
||||||
|
|
||||||
|
# # BUILD FROM LATEST API IMAGE
|
||||||
|
# api:
|
||||||
|
# image: ghcr.io/danny-avila/librechat-dev-api:latest
|
||||||
|
|
||||||
|
# # BUILD FROM LATEST API IMAGE (NUMBERED RELEASE)
|
||||||
|
# api:
|
||||||
|
# image: ghcr.io/danny-avila/librechat-api:latest
|
||||||
|
|
||||||
|
# # ADD MONGO-EXPRESS
|
||||||
|
# mongo-express:
|
||||||
|
# image: mongo-express
|
||||||
|
# container_name: mongo-express
|
||||||
|
# environment:
|
||||||
|
# ME_CONFIG_MONGODB_SERVER: mongodb
|
||||||
|
# ME_CONFIG_BASICAUTH_USERNAME: admin
|
||||||
|
# ME_CONFIG_BASICAUTH_PASSWORD: password
|
||||||
|
# ports:
|
||||||
|
# - '8081:8081'
|
||||||
|
# depends_on:
|
||||||
|
# - mongodb
|
||||||
|
# restart: always
|
||||||
|
|
||||||
|
# # USE MONGODB V4.4.18 - FOR OLDER CPU WITHOUT AVX SUPPORT
|
||||||
|
# mongodb:
|
||||||
|
# image: mongo:4.4.18
|
||||||
|
|
||||||
|
# # DISABLE THE MONGODB CONTAINER - YOU NEED TO SET AN ALTERNATIVE MONGODB URI IN THE .ENV FILE
|
||||||
|
# api:
|
||||||
|
# environment:
|
||||||
|
# - MONGO_URI=${MONGO_URI}
|
||||||
|
# mongodb:
|
||||||
|
# image: tianon/true
|
||||||
|
# command: ""
|
||||||
|
# entrypoint: ""
|
||||||
|
|
||||||
|
# # EXPOSE MONGODB PORTS - USE CAREFULLY, THIS MAKES YOUR DATABASE VULNERABLE TO ATTACKS
|
||||||
|
# mongodb:
|
||||||
|
# ports:
|
||||||
|
# - 27018:27017
|
||||||
|
|
||||||
|
# # DISABLE MEILISEARCH
|
||||||
|
# meilisearch:
|
||||||
|
# profiles:
|
||||||
|
# - donotstart
|
||||||
|
|
||||||
|
# # EXPOSE MEILISEARCH PORTS - DO NOT USE THE DEFAULT VALUE FOR THE MASTER KEY IF YOU DO THIS
|
||||||
|
# meilisearch:
|
||||||
|
# ports:
|
||||||
|
# - 7700:7700
|
|
@ -1,44 +1,32 @@
|
||||||
version: "3.4"
|
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:
|
services:
|
||||||
# client:
|
|
||||||
# image: nginx-client
|
|
||||||
# build:
|
|
||||||
# context: .
|
|
||||||
# target: nginx-client
|
|
||||||
# restart: always
|
|
||||||
# ports:
|
|
||||||
# - 3080:80
|
|
||||||
# volumes:
|
|
||||||
# - /client/node_modules
|
|
||||||
# depends_on:
|
|
||||||
# - api
|
|
||||||
api:
|
api:
|
||||||
container_name: LibreChat
|
container_name: LibreChat
|
||||||
ports:
|
ports:
|
||||||
- 3080:3080 # Change it to 9000:3080 to use nginx
|
- 3080:3080
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
image: librechat # Comment this & uncomment below to build from docker hub image
|
image: librechat
|
||||||
build: # ^------
|
build:
|
||||||
context: . # ^------
|
context: .
|
||||||
target: node # ^------v
|
target: node
|
||||||
# image: ghcr.io/danny-avila/librechat:latest # Uncomment this & comment above to build from docker hub image
|
|
||||||
restart: always
|
restart: always
|
||||||
user: "${UID}:${GID}"
|
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
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- MONGO_URI=mongodb://mongodb:27017/LibreChat
|
- 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_HOST=http://meilisearch:7700
|
||||||
- MEILI_HTTP_ADDR=meilisearch:7700
|
- MEILI_HTTP_ADDR=meilisearch:7700
|
||||||
volumes:
|
volumes:
|
||||||
- /app/client/node_modules # node_modules mapping necessary for module persistence
|
- /app/client/node_modules
|
||||||
- /app/api/node_modules
|
- /app/api/node_modules
|
||||||
- ./api:/app/api
|
- ./api:/app/api
|
||||||
- ./.env:/app/.env
|
- ./.env:/app/.env
|
||||||
|
@ -47,8 +35,6 @@ services:
|
||||||
- ./images:/app/client/public/images
|
- ./images:/app/client/public/images
|
||||||
mongodb:
|
mongodb:
|
||||||
container_name: chat-mongodb
|
container_name: chat-mongodb
|
||||||
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
|
|
||||||
# - 27018:27017
|
|
||||||
image: mongo
|
image: mongo
|
||||||
restart: always
|
restart: always
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
|
@ -59,8 +45,6 @@ services:
|
||||||
container_name: chat-meilisearch
|
container_name: chat-meilisearch
|
||||||
image: getmeili/meilisearch:v1.5
|
image: getmeili/meilisearch:v1.5
|
||||||
restart: always
|
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_file:
|
||||||
- .env
|
- .env
|
||||||
user: "${UID}:${GID}"
|
user: "${UID}:${GID}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue