1.安装Docker
Docker: Accelerated Container Application Development
2.添加 PATH
3.安装Dify
https://github.com/langgenius/dify.git
把.env.example文件名改为.env
4.更换镜像源
{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": false,"registry-mirrors": ["https://docker.feng.cx","https://docker.m.daocloud.io","https://docker.imgdb.de","https://docker-0.unsee.tech","https://docker.hlmirror.com","https://docker.1ms.run","https://func.ink","https://lispy.org","https://docker.xiaogenban1993.com","https://docker.xuanyuan.me","https://docker.rainbond.cc","https://do.nark.eu.org","https://dc.j8.work","https://docker.hpcloud.cloud","https://docker.unsee.tech","https://docker.1panel.live","http://mirrors.ustc.edu.cn","https://docker.chenby.cn","http://mirror.azure.cn","https://dockerpull.org","https://dockerhub.icu","https://hub.rat.dev"]
}
5.cmd中输入docker compose up -d安装Dify
6.安装成功
7.打开Dify
http://127.0.0.1/install
8.内网穿透
参考我的另外一篇
零基础|宝塔面板|frp内网穿透|esp32cam远程访问|微信小程序_宝塔 frp-CSDN博客