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博客