Skip to content

Commit dae85c2

Browse files
authored
Merge pull request #200 from aitok-ai/lijing/merge_base_danny
Testing of PR-199
2 parents 4887aa8 + d56c457 commit dae85c2

File tree

1,121 files changed

+142935
-35478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,121 files changed

+142935
-35478
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM node:18-bullseye
2+
3+
RUN useradd -m -s /bin/bash vscode
4+
RUN mkdir -p /workspaces && chown -R vscode:vscode /workspaces
5+
WORKDIR /workspaces

.devcontainer/devcontainer.json

Lines changed: 15 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,18 @@
1-
// {
2-
// "name": "LibreChat_dev",
3-
// // Update the 'dockerComposeFile' list if you have more compose files or use different names.
4-
// "dockerComposeFile": "docker-compose.yml",
5-
// // The 'service' property is the name of the service for the container that VS Code should
6-
// // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
7-
// "service": "librechat",
8-
// // The 'workspaceFolder' property is the path VS Code should open by default when
9-
// // connected. Corresponds to a volume mount in .devcontainer/docker-compose.yml
10-
// "workspaceFolder": "/workspace"
11-
// //,
12-
// // // Set *default* container specific settings.json values on container create.
13-
// // "settings": {},
14-
// // // Add the IDs of extensions you want installed when the container is created.
15-
// // "extensions": [],
16-
// // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
17-
// // "shutdownAction": "none",
18-
// // Uncomment the next line to use 'postCreateCommand' to run commands after the container is created.
19-
// // "postCreateCommand": "uname -a",
20-
// // Comment out to connect as root instead. To add a non-root user, see: https://aka.ms/vscode-remote/containers/non-root.
21-
// // "remoteUser": "vscode"
22-
// }
231
{
24-
// "name": "LibreChat_dev",
25-
"dockerComposeFile": "docker-compose.yml",
26-
"service": "app",
27-
// "image": "node:19-alpine",
28-
// "workspaceFolder": "/workspaces",
29-
"workspaceFolder": "/workspace",
30-
// Set *default* container specific settings.json values on container create.
31-
// "overrideCommand": true,
32-
"customizations": {
33-
"vscode": {
34-
"extensions": [],
35-
"settings": {
36-
"terminal.integrated.profiles.linux": {
37-
"bash": null
38-
}
39-
}
2+
"dockerComposeFile": "docker-compose.yml",
3+
"service": "app",
4+
"workspaceFolder": "/workspaces",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [],
8+
"settings": {
9+
"terminal.integrated.profiles.linux": {
10+
"bash": null
4011
}
41-
},
42-
"postCreateCommand": "",
43-
// "workspaceMount": "src=${localWorkspaceFolder},dst=/code,type=bind,consistency=cached"
44-
45-
// "runArgs": [
46-
// "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined",
47-
// "-v", "/tmp/.X11-unix:/tmp/.X11-unix",
48-
// "-v", "${env:XAUTHORITY}:/root/.Xauthority:rw",
49-
// "-v", "/home/${env:USER}/.cdh:/root/.cdh",
50-
// "-e", "DISPLAY=${env:DISPLAY}",
51-
// "--name=tgw_assistant_backend_dev",
52-
// "--network=host"
53-
// ],
54-
// "settings": {
55-
// "terminal.integrated.shell.linux": "/bin/bash"
56-
// },
57-
"features": {"ghcr.io/devcontainers/features/git:1": {}}
12+
}
13+
}
14+
},
15+
"postCreateCommand": "",
16+
"features": { "ghcr.io/devcontainers/features/git:1": {} },
17+
"remoteUser": "vscode"
5818
}

.devcontainer/docker-compose.yml

Lines changed: 25 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
version: '3.4'
1+
version: "3.8"
22

33
services:
44
app:
5-
# container_name: LibreChat_dev
6-
image: node:19-bullseye
7-
# Using a Dockerfile is optional, but included for completeness.
8-
# build:
9-
# context: .
10-
# dockerfile: Dockerfile
11-
# # [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile
12-
# args:
13-
# VARIANT: buster
14-
# network_mode: "host"
5+
build:
6+
context: ..
7+
dockerfile: .devcontainer/Dockerfile
8+
# restart: always
159
links:
1610
- mongodb
1711
- meilisearch
@@ -21,63 +15,51 @@ services:
2115
- "host.docker.internal:host-gateway"
2216

2317
volumes:
24-
# # This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
25-
- ..:/workspace:cached
26-
# # - /app/client/node_modules
27-
# # - ./api:/app/api
28-
# # - ./.env:/app/.env
29-
# # - ./.env.development:/app/.env.development
30-
# # - ./.env.production:/app/.env.production
31-
# # - /app/api/node_modules
32-
33-
# # Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
34-
# # - /var/run/docker.sock:/var/run/docker.sock
18+
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
19+
- ..:/workspaces:cached
20+
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
21+
# - /var/run/docker.sock:/var/run/docker.sock
22+
environment:
23+
- HOST=0.0.0.0
24+
- MONGO_URI=mongodb://mongodb:27017/LibreChat
25+
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy with docker
26+
# - OPENAI_REVERSE_PROXY=http://host.docker.internal:8070/v1/chat/completions # if you are hosting your own chatgpt reverse proxy with docker
27+
- MEILI_HOST=http://meilisearch:7700
3528

3629
# Runs app on the same network as the service container, allows "forwardPorts" in devcontainer.json function.
3730
# network_mode: service:another-service
3831

3932
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
4033
# (Adding the "ports" property to this file will not forward from a Codespace.)
4134

42-
# Uncomment the next line to use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
43-
# user: vscode
44-
45-
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
46-
# cap_add:
47-
# - SYS_PTRACE
48-
# security_opt:
49-
# - seccomp:unconfined
35+
# Use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
36+
user: vscode
5037

5138
# Overrides default command so things don't shut down after the process ends.
5239
command: /bin/sh -c "while sleep 1000; do :; done"
5340

5441
mongodb:
5542
container_name: chat-mongodb
56-
# network_mode: "host"
5743
expose:
5844
- 27017
5945
# ports:
6046
# - 27018:27017
6147
image: mongo
62-
# restart: always
48+
# restart: always
6349
volumes:
6450
- ./data-node:/data/db
6551
command: mongod --noauth
6652
meilisearch:
6753
container_name: chat-meilisearch
68-
image: getmeili/meilisearch:v1.0
69-
# network_mode: "host"
54+
image: getmeili/meilisearch:v1.5
55+
# restart: always
7056
expose:
7157
- 7700
72-
# ports:
73-
# - 7700:7700
74-
# env_file:
75-
# - .env
58+
# Uncomment this to access meilisearch from outside docker
59+
# ports:
60+
# - 7700:7700 # if exposing these ports, make sure your master key is not the default value
7661
environment:
77-
- SEARCH=false
78-
- MEILI_HOST=http://0.0.0.0:7700
79-
- MEILI_HTTP_ADDR=0.0.0.0:7700
62+
- MEILI_NO_ANALYTICS=true
8063
- MEILI_MASTER_KEY=5c71cf56d672d009e36070b5bc5e47b743535ae55c818ae3b735bb6ebfb4ba63
8164
volumes:
82-
- ./meili_data:/meili_data
83-
65+
- ./meili_data_v1.5:/meili_data

.dockerignore

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
**/.circleci
2+
**/.editorconfig
3+
**/.dockerignore
4+
**/.git
5+
**/.DS_Store
6+
**/.vscode
17
**/node_modules
2-
client/dist/images
8+
9+
# Specific patterns to ignore
310
data-node
4-
.env
5-
**/.env
11+
meili_data*
12+
librechat*
13+
Dockerfile*
14+
docs
15+
16+
# Ignore all hidden files
17+
.*

0 commit comments

Comments
 (0)