mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-25 13:35:35 -04:00
hoping update this doc #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Circleyan on GitHub (Jul 7, 2024).
I have no coding experience, so I got lost in this deployment instruction article.
But by following ChatGPT's rephrased instructions for this documentation, I successfully deployed it. This submission is the adjusted version by GPT.
克隆 Dify 源代码
首先,使用 Git 克隆 Dify 源代码到你的本地机器:
启动 Dify
进入 Dify 源代码的 Docker 目录
复制环境配置文件
启动 Docker 容器
根据你系统上的 Docker Compose 版本,选择合适的命令来启动容器:
如果你有 Docker Compose V2,使用以下命令:
如果你有 Docker Compose V1,使用以下命令:
你可以通过以下命令检查 Docker Compose 版本:
检查部署结果
执行上述命令后,你应该会看到类似以下的输出,表示所有容器都已启动:
检查容器运行状态
最后,检查所有容器是否正常运行:
你应该会看到类似以下的输出,显示所有容器的状态和端口映射:
在这个输出中,你应该会看到 7 个容器正在运行,包括 3 个业务服务(api / worker / web)和 4 个基础组件(weaviate / db / redis / nginx)。
通过这些步骤,你应该可以成功克隆和启动 Dify。
更新 Dify
进入 dify 源代码的 docker 目录
按顺序执行以下命令:
@AllenWriter commented on GitHub (Sep 2, 2024):
Updated.