1
1
version : " 3.4"
2
2
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
+
3
6
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
16
7
api :
17
8
container_name : LibreChat
18
9
ports :
19
- - 3080:3080 # Change it to 9000:3080 to use nginx
10
+ - 3080:3080
20
11
depends_on :
21
12
- 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
27
17
restart : always
28
18
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 :
30
20
- " host.docker.internal:host-gateway"
31
21
env_file :
32
22
- .env
33
23
environment :
34
24
- HOST=0.0.0.0
35
25
- 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
38
26
- MEILI_HOST=http://meilisearch:7700
39
27
- MEILI_HTTP_ADDR=meilisearch:7700
40
28
volumes :
41
- - /app/client/node_modules # node_modules mapping necessary for module persistence
29
+ - /app/client/node_modules
42
30
- /app/api/node_modules
43
31
- ./api:/app/api
44
32
- ./.env:/app/.env
@@ -47,8 +35,6 @@ services:
47
35
- ./images:/app/client/public/images
48
36
mongodb :
49
37
container_name : chat-mongodb
50
- # ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
51
- # - 27018:27017
52
38
image : mongo
53
39
restart : always
54
40
user : " ${UID}:${GID}"
@@ -59,8 +45,6 @@ services:
59
45
container_name : chat-meilisearch
60
46
image : getmeili/meilisearch:v1.5
61
47
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
64
48
env_file :
65
49
- .env
66
50
user : " ${UID}:${GID}"
0 commit comments