Skip to content

Commit 04d3e0a

Browse files
fuegovicRasukarusan
authored andcommitted
update: docker-compose.yaml 🐋 (danny-avila#1341)
1 parent ea1a912 commit 04d3e0a

File tree

2 files changed

+77
-26
lines changed

2 files changed

+77
-26
lines changed

docker-compose.override.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
version: '3.4'
2+
3+
# # TO USE THIS FILE, FIRST UNCOMMENT THE FOLLOWING LINE ('services:')
4+
5+
# services:
6+
7+
# # THEN UNCOMMENT ONLY THE SECTION OR SECTIONS CONTAINING THE CHANGES YOU WANT TO APPLY
8+
# # SAVE THIS FILE AS 'docker-compose.override.yaml'
9+
# # AND USE THE 'docker-compose build' & 'docker-compose up -d' COMMANDS AS YOU WOULD NORMALLY DO
10+
11+
# # BUILD FROM LATEST IMAGE
12+
# api:
13+
# image: ghcr.io/danny-avila/librechat-dev:latest
14+
15+
# # BUILD FROM LATEST IMAGE (NUMBERED RELEASE)
16+
# api:
17+
# image: ghcr.io/danny-avila/librechat:latest
18+
19+
# # BUILD FROM LATEST API IMAGE
20+
# api:
21+
# image: ghcr.io/danny-avila/librechat-dev-api:latest
22+
23+
# # BUILD FROM LATEST API IMAGE (NUMBERED RELEASE)
24+
# api:
25+
# image: ghcr.io/danny-avila/librechat-api:latest
26+
27+
# # ADD MONGO-EXPRESS
28+
# mongo-express:
29+
# image: mongo-express
30+
# container_name: mongo-express
31+
# environment:
32+
# ME_CONFIG_MONGODB_SERVER: mongodb
33+
# ME_CONFIG_BASICAUTH_USERNAME: admin
34+
# ME_CONFIG_BASICAUTH_PASSWORD: password
35+
# ports:
36+
# - '8081:8081'
37+
# depends_on:
38+
# - mongodb
39+
# restart: always
40+
41+
# # USE MONGODB V4.4.18 - FOR OLDER CPU WITHOUT AVX SUPPORT
42+
# mongodb:
43+
# image: mongo:4.4.18
44+
45+
# # DISABLE THE MONGODB CONTAINER - YOU NEED TO SET AN ALTERNATIVE MONGODB URI IN THE .ENV FILE
46+
# api:
47+
# environment:
48+
# - MONGO_URI=${MONGO_URI}
49+
# mongodb:
50+
# image: tianon/true
51+
# command: ""
52+
# entrypoint: ""
53+
54+
# # EXPOSE MONGODB PORTS - USE CAREFULLY, THIS MAKES YOUR DATABASE VULNERABLE TO ATTACKS
55+
# mongodb:
56+
# ports:
57+
# - 27018:27017
58+
59+
# # DISABLE MEILISEARCH
60+
# meilisearch:
61+
# profiles:
62+
# - donotstart
63+
64+
# # EXPOSE MEILISEARCH PORTS - DO NOT USE THE DEFAULT VALUE FOR THE MASTER KEY IF YOU DO THIS
65+
# meilisearch:
66+
# ports:
67+
# - 7700:7700

docker-compose.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,32 @@
11
version: "3.4"
22

3+
# Do not edit this file directly. Use a ‘docker-compose.override.yaml’ file if you can.
4+
# Refer to `docker-compose.override.yaml.example’ for some sample configurations.
5+
36
services:
4-
# client:
5-
# image: nginx-client
6-
# build:
7-
# context: .
8-
# target: nginx-client
9-
# restart: always
10-
# ports:
11-
# - 3080:80
12-
# volumes:
13-
# - /client/node_modules
14-
# depends_on:
15-
# - api
167
api:
178
container_name: LibreChat
189
ports:
19-
- 3080:3080 # Change it to 9000:3080 to use nginx
10+
- 3080:3080
2011
depends_on:
2112
- mongodb
22-
image: librechat # Comment this & uncomment below to build from docker hub image
23-
build: # ^------
24-
context: . # ^------
25-
target: node # ^------v
26-
# image: ghcr.io/danny-avila/librechat:latest # Uncomment this & comment above to build from docker hub image
13+
image: librechat
14+
build:
15+
context: .
16+
target: node
2717
restart: always
2818
user: "${UID}:${GID}"
29-
extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
19+
extra_hosts:
3020
- "host.docker.internal:host-gateway"
3121
env_file:
3222
- .env
3323
environment:
3424
- HOST=0.0.0.0
3525
- MONGO_URI=mongodb://mongodb:27017/LibreChat
36-
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy with docker
37-
# - OPENAI_REVERSE_PROXY=http://host.docker.internal:8070/v1/chat/completions # if you are hosting your own chatgpt reverse proxy with docker
3826
- MEILI_HOST=http://meilisearch:7700
3927
- MEILI_HTTP_ADDR=meilisearch:7700
4028
volumes:
41-
- /app/client/node_modules # node_modules mapping necessary for module persistence
29+
- /app/client/node_modules
4230
- /app/api/node_modules
4331
- ./api:/app/api
4432
- ./.env:/app/.env
@@ -47,8 +35,6 @@ services:
4735
- ./images:/app/client/public/images
4836
mongodb:
4937
container_name: chat-mongodb
50-
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
51-
# - 27018:27017
5238
image: mongo
5339
restart: always
5440
user: "${UID}:${GID}"
@@ -59,8 +45,6 @@ services:
5945
container_name: chat-meilisearch
6046
image: getmeili/meilisearch:v1.5
6147
restart: always
62-
# ports: # Uncomment this to access meilisearch from outside docker
63-
# - 7700:7700 # if exposing these ports, make sure your master key is not the default value
6448
env_file:
6549
- .env
6650
user: "${UID}:${GID}"

0 commit comments

Comments
 (0)