世界500强企业是什么意思,企业网站seo诊断工具,拿品牌做网站算侵权吗,长沙网站制作策划https://github.com/langgenius/dify
介绍
Dify 是一款开源的大语言模型(LLM) 应用开发平台。它融合了后端即服务#xff08;Backend as Service#xff09;和 LLMOps 的理念#xff0c;使开发者可以快速搭建生产级的生成式 AI 应用。Dify 内置了构建 LLM 应用所需的关键技…https://github.com/langgenius/dify
介绍
Dify 是一款开源的大语言模型(LLM) 应用开发平台。它融合了后端即服务Backend as Service和 LLMOps 的理念使开发者可以快速搭建生产级的生成式 AI 应用。Dify 内置了构建 LLM 应用所需的关键技术栈包括对数百个模型的支持、直观的 Prompt 编排界面、高质量的 RAG 引擎、稳健的 Agent 框架、灵活的流程编排并同时提供了一套易用的界面和 API。这为开发者节省了许多重复造轮子的时间使其可以专注在创新和业务需求上。
参考文档[https://docs.dify.ai/zh-hans/getting-started/install-self-hosted](社区版 | Dify)
docker-compose部署
环境要求
Docker 19.03 or later Docker Compose 1.28 or later
docker version
docker-compose version为了加速拉取镜像可以设置加速镜像可选
vi /etc/docker/daemon.json
{registry-mirrors: ,https://docker.m.daocloud.io/,https://docker.1ms.run,https://registry.docker-cn.com,http://hub-mirror.c.163.com,https://docker.mirrors.ustc.edu.cn],data-root: /iflytek/docker
}
systemctl daemon-reload
systemctl restart docker部署步骤
克隆 Dify 代码仓库
克隆 Dify 源代码至本地环境。
git clone https://github.com/langgenius/dify.git启动 Dify
进入 Dify 源代码的 Docker 目录
cd dify/docker复制环境配置文件
cp .env.example .env启动 Docker 容器
根据你系统上的 Docker Compose 版本选择合适的命令来启动容器。你可以通过 $ docker compose version 命令检查版本详细说明请参考 Docker 官方文档
根据Docker Compose不同版本使用命令
docker compose up -d或
docker-compose up -d镜像下载可能较久本次是手工拉取镜像后再执行docker-compose up -d的。
#手工拉取镜像
docker pull langgenius/dify-api:latest
docker pull langgenius/dify-web:latest
docker pull postgres:15-alpine
docker pull redis:6-alpine
docker pull langgenius/dify-sandbox:0.2.10
docker pull langgenius/dify-plugin-daemon:0.0.1-local
docker pull ubuntu/squid:latest
docker pull certbot/certbot
docker pull nginx:latest
docker pull semitechnologies/weaviate:1.19.0
docker pull langgenius/qdrant:v1.7.3
docker pull pgvector/pgvector:pg16
docker pull tensorchord/pgvecto-rs:pg16-v0.3.0
docker pull ghcr.io/chroma-core/chroma:0.5.20
docker pull quay.io/oceanbase/oceanbase-ce:4.3.3.0-100000142024101215
docker pull container-registry.oracle.com/database/free:latest
docker pull quay.io/coreos/etcd:v3.5.5
docker pull minio/minio:RELEASE.2023-03-20T20-16-18Z
docker pull milvusdb/milvus:v2.5.0-beta
docker pull opensearchproject/opensearch:latest
docker pull opensearchproject/opensearch-dashboards:latest
docker pull myscale/myscaledb:1.6.4
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.14.3
docker pull docker.elastic.co/kibana/kibana:8.14.3
docker pull registry.cn-hangzhou.aliyuncs.com/kenwood-ai/unstructured-api:latest
docker tag registry.cn-hangzhou.aliyuncs.com/kenwood-ai/unstructured-api:latest downloads.unstructured.io/unstructured-io/unstructured-api:latest
docker tag langgenius/dify-api:latest langgenius/dify-api:1.0.0
docker tag langgenius/dify-web:latest langgenius/dify-web:1.0.0镜像拉取完整后docker compose up -d启动容器启动成功后浏览器直接访问http://localhost/首次访问会要求设置用户名和密码。
参考文档
Docker Compose 部署 | Dify
dify国内镜像 https://zhuanlan.zhihu.com/p/720041189