安装dify项目
官网地址:http://difyai.com/
github地址:https://github.com/langgenius/dify
下载项目:
git clone https://github.com/langgenius/dify.git
下载过慢,直接访问网页下载zip压缩包:
解压,项目包改名dify
安装dify的docker环境
按照github的方式下载docker
cd dify
cd docker
cp .env.example .env
docker compose up -d
在执行docker compose up -d时,无法成功下载。
需要调整docker的源
vim /etc/docker/daemon.json
然后增加地址:
{"registry-mirrors": ["https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://mirror.aliyuncs.com",
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io",
"https://docker.nju.edu.cn",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.iscas.ac.cn",
"https://docker.rainbond.cc"]
}
保存后重启docker服务
systemctl restart docker
再执行下载docker,可以成功