Docker Compose Deployment
Prerequisites
Operating System | Software | Explanation |
---|---|---|
macOS 10.14 or later | Docker Desktop | Set the Docker virtual machine (VM) to use a minimum of 2 virtual CPUs (vCPUs) and 8 GB of initial memory. Otherwise, the installation may fail. For more information, please refer to the Docker Desktop installation guide for Mac. |
Linux platforms | Docker 19.03 or later Docker Compose 1.25.1 or later | Please refer to the Docker installation guide and the Docker Compose installation guide for more information on how to install Docker and Docker Compose, respectively. |
Windows with WSL 2 enabled | Docker Desktop | We recommend storing the source code and other data that is bound to Linux containers in the Linux file system rather than the Windows file system. For more information, please refer to the Docker Desktop installation guide for using the WSL 2 backend on Windows. |
Clone Dify
Clone the Dify source code to your local machine:
Start Dify
Navigate to the docker directory in the Dify source code and execute the following command to start Dify:
If your system has Docker Compose V2 installed instead of V1, use
docker compose
instead ofdocker-compose
. Check if this is the case by running$ docker compose version
. Read more information here.
Deployment Results:
Finally, check if all containers are running successfully:
This includes 3 business services: api / worker / web, and 4 underlying components: weaviate / db / redis / nginx.
Upgrade Dify
Enter the docker directory of the dify source code and execute the following commands:
Access Dify
Finally, access http://localhost/install to use the deployed Dify.
Last updated