Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
feat: docker-compose deployment file (#706)
Danny Avilaf4f1199a55d5
diff --git a/client/nginx.conf b/client/nginx.confindex 96cfe345e7..0f5204aaed 100644--- a/client/nginx.conf+++ b/client/nginx.conf@@ -1,15 +1,19 @@-server {- listen 80;- server_name localhost;+events {+ worker_connections 1024;+}- location /api {- # Proxy requests to the API service- proxy_pass http://api:3080/api;- }+http {+ server {+ listen 80;+ server_name localhost;++ location /api {+ proxy_pass http://api:3080/api;+ }- location / {- # Serve your React app- root /usr/share/nginx/html;- try_files $uri $uri/ /index.html;+ location / {+ root /usr/share/nginx/html;+ try_files $uri $uri/ /index.html;+ }}}diff --git a/docs/dev/README.md b/docs/dev/README.mdindex 044438cbf6..899f415f44 100644--- a/docs/dev/README.md+++ b/docs/dev/README.md@@ -14,4 +14,12 @@ This directory contains files used for developer work- When you don't need to build, run `docker-compose -f ./docs/dev/single-compose.yml up`- This requires you use a MongoDB Atlas connection string for the `MONGO_URI` env var- A URI string to a mongodb service accessible to your container is also possible.- - Remote Meilisearch may also be possible in the same manner, but is not tested.\ No newline at end of file+ - Remote Meilisearch may also be possible in the same manner, but is not tested.+### deploy-compose.yml:+- Similar to above, but with basic configuration for deployment to a cloud provider where multi-container compose works+ - Tested and working on a $6 droplet on DigitalOcean, just by visiting the http://server-ip/9000.+ - Not a scalable solution, but ideal for quickly hosting on a remote linux server.+ - You should adjust `server_name localhost;` to match your domain name, replacing localhost, as needed.+- From root dir of the project, run `docker-compose -f ./docs/dev/deploy-compose.yml up --build`+ - When you don't need to build, run `docker-compose -f ./docs/dev/deploy-compose.yml up`+- Unlike the single-compose file, this containerizes both MongoDB and Meilisearch, as they are already setup for you.\ No newline at end of filediff --git a/docs/dev/deploy-compose.yml b/docs/dev/deploy-compose.ymlnew file mode 100644index 0000000000..303eb5505e--- /dev/null+++ b/docs/dev/deploy-compose.yml@@ -0,0 +1,65 @@+version: "3.4"++services:+ client:+ image: nginx:latest+ restart: always+ ports:+ - 80:80+ - 443:443+ volumes:+ - ../../client/nginx.conf:/etc/nginx/nginx.conf+ - /app/client/node_modules+ depends_on:+ - api+ api:+ container_name: LibreChat+ ports:+ - 9000:3080+ depends_on:+ - mongodb+ image: ghcr.io/danny-avila/librechat:latest+ # image: librechat_deploy+ # build:+ # context: ../../+ # target: node+ restart: always+ 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+ - MEILI_HTTP_ADDR=meilisearch:7700+ volumes:+ - /app/client/node_modules+ - ../../api:/app/api+ - ../../.env:/app/.env+ - ../../.env.development:/app/.env.development+ - ../../.env.production:/app/.env.production+ - /app/api/node_modules+ - ../../images:/app/client/public/images+ mongodb:+ container_name: chat-mongodb+ ports:+ - 27018:27017+ image: mongo+ restart: always+ volumes:+ - ./data-node:/data/db+ command: mongod --noauth+ meilisearch:+ container_name: chat-meilisearch+ image: getmeili/meilisearch:v1.0+ ports:+ - 7700:7700+ env_file:+ - ../../.env+ environment:+ - MEILI_HOST=http://meilisearch:7700+ - MEILI_HTTP_ADDR=meilisearch:7700+ - MEILI_NO_ANALYTICS=true+ volumes:+ - ./meili_data:/meili_data