
一个支持chat gpt的项目支持docker-compose一键部署,这谁不喜欢呀。
AI-摘要
大橘 GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
一个支持chat gpt的项目支持docker-compose一键部署,这谁不喜欢呀。
首先你得现有一个服务器。国内服务器厂商很多、腾讯、阿里都行。
1.拉取代码
购买的服务器是linux系统的,Debian 系统的,建议选择安装docker-compose,下方是docker-compose.yml配置文件
Debian 系统的安装docker-compose参考文档
version: "3.8"
services:
api:
# build:
# context: .
# dockerfile: Dockerfile.multi
# target: api-build
image: ghcr.io/danny-avila/librechat-dev-api:latest
container_name: LibreChat-API
ports:
- 3080:3080
depends_on:
- mongodb
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/LibreChat
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
volumes:
- ./images:/app/client/public/images
client:
build:
context: .
dockerfile: Dockerfile.multi
target: prod-stage
container_name: LibreChat-NGINX
ports:
- 80:80
- 443:443
depends_on:
- api
restart: always
mongodb:
container_name: chat-mongodb
# ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
# - 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: # 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
environment:
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
- MEILI_NO_ANALYTICS=true
volumes:
- ./meili_data:/meili_data
2.启动代码
安装完成后使用命令启动代码
docker-compose -p LibreChat up -d
进入容器
docker exec -it LibreChat /usr/share/
查看容器日志
docker logs jdk -f --tail 0
安装过程比较缓慢需要快点安装的可以使用我下载好的镜像进行安装
文件较大添加私聊发送
3.上传本地镜像
上传命令
docker load -i /tmp/tomcat.tar
下载命令
docker down 镜像名称
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 一只新鑫仔
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果