Prerequisites

Before installing Dify, make sure your machine meets the following minimum system requirements:

  • CPU >= 2 Core
  • RAM >= 4 GiB
Operating SystemSoftwareExplanation
Linux platforms

aaPanel 7.0.11 or later

Please refer to the aaPanel installation guide for more information on how to install aaPanel.

Deployment

  1. Log in to aaPanel and click Docker in the menu bar

  2. The first time you will be prompteINLINE_CODE_PDocker Compose the Docker and Docker Compose services, click Install Now. If it is already installed, please ignore it.

3INLINE_CODOne-Click Installe insinstall is complete, find Dify in One-Click Install and click install

  1. configure basic information such as the domain name, ports to complete the installation

[!IMPORTANT]

The domain name is optional, if the domain name is filled, it can be managed through [Website]—> [Proxy Project], and you do not need to check [Allow external access] after filling in the domain name, otherwise you need to check it before you can access it through the port

  1. After installation, enter the domain name or IP+ port sDify-characterss step in the browser latests.
  • Name: application name, default Dify-characters
  • Version selection: default latest
  • Domain name: If you need to access directly through the domain name, please configure the domain naIP+Portnd resolve the domain name to the server
  • Allow external access: If you nee8088ct access through IP+Port, please check. If you have set up a domain name, please do not check here.
  • Port: DeDocker0 8088, can be modified by yourself
  1. After submission, the panel will automatically initialize the application, which will take about 1-3 minutes. It can be accessed after the initializaDocker1p the admin account:
# If you have set domain
http://yourdomain/install

# If you choose to access through `IP+Port`
http://your_server_ip:8088/install

Dify web interface address:

# If you have set domain
http://yourdomain/

# If you choose to access through `IP+Port`
http://your_server_ip```bash
# If you have set domain
http://yourdomain/

# If you choose to access through `IP+Port`
http://your_server_ip:8088/