Dify github网址:GitHub - langgenius/dify at 0.15.3
官方文档是直接clone :git clone https://github.com/langgenius/dify.git --branch 0.15.3
但是由于没办法github给墙了有可能clone不了那直接下载zip并上传到服务器,通过指令
unzip dify.zip 来进行解压。
解压完成后 cd dify/docker
复制环境配置文件 cp .env.example .env
然后启动 docker-compose up -d
如果出现nginx 80端口占用
#那么进入到dify文件夹下
cd /dify/docker
vi .env
# 找到 EXPOSE_NGINX_PORT ,改成你需要的端口默认是80 ps:
# ------------------------------
# Docker Compose Service Expose Host Port Configurations
# ------------------------------
EXPOSE_NGINX_PORT=8081
EXPOSE_NGINX_SSL_PORT=443
# 保存退出
:wq!
最后在执行 docker-compose up -d