本地部署dify

作者: gavin 分类: AI 发布时间: 2024-05-26 10:23

Clone Dify

Clone the Dify source code to your local machine:

git clone https://github.com/langgenius/dify.git

Start Dify

Navigate to the docker directory in the Dify source code and execute the following command to start Dify:

cd dify/docker 
docker compose up -d

Finally, check if all containers are running successfully:Copy

docker compose ps

Upgrade Dify

Enter the docker directory of the dify source code and execute the following commands:Copy

cd dify/docker
git pull origin main
docker compose down
docker compose pull
docker compose up -d

Access Dify

Finally, access http://localhost/install to use the deployed Dify.

参考:https://docs.dify.ai/getting-started/install-self-hosted/docker-compose