|
@@ -1,4 +1,38 @@
|
|
|
# Dify部署安装
|
|
|
+git clone https://github.com/langgenius/dify.git --branch 0.15.3
|
|
|
+在根目录下创建dify文件夹,将源码放入文件夹后解压
|
|
|
+unzip dify.zip
|
|
|
|
|
|
- test
|
|
|
+Docker一键安装
|
|
|
+curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
|
|
|
+sudo systemctl start docker
|
|
|
+sudo systemctl enable docker
|
|
|
|
|
|
+
|
|
|
+配置docker镜像源
|
|
|
+Vim /etc/docker/daemon.json
|
|
|
+加入镜像源
|
|
|
+{"registry-mirrors":["https://docker.xuanyuan.me","https://dytt.online"]}
|
|
|
+重启docker
|
|
|
+systemctl daemon-reload
|
|
|
+systemctl restart docker
|
|
|
+docker info
|
|
|
+
|
|
|
+测试docker
|
|
|
+sudo docker run hello-world
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+进入 Dify 源代码的 Docker 目录
|
|
|
+cd /dify/dify-1.4.3/docker
|
|
|
+复制环境变量
|
|
|
+cp .env.example .env
|
|
|
+启动 Docker 容器
|
|
|
+docker compose up -d
|
|
|
+
|
|
|
+最后检查是否所有容器都正常运行:
|
|
|
+docker compose ps
|
|
|
+
|
|
|
+后打开
|
|
|
+http://(IP地址)/apps
|
|
|
+即可使用dify平台
|