本地部署dify
Clone Dify
Clone the Dify source code to your local
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
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