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