Documentation Index
Fetch the complete documentation index at: https://docs.dify.ai/llms.txt
Use this file to discover all available pages before exploring further.
Before Deployment
Make sure your machine meets the following minimum system requirements.Hardware
- CPU >= 2 Core
- RAM >= 4 GiB
Software
| Operating System | Required Software | Notes |
|---|---|---|
| macOS 10.14 or later | Docker Desktop with Docker Compose 2.24.0+ | Configure the Docker virtual machine with at least 2 virtual CPUs and 8 GiB of memory. For installation instructions, see Install Docker Desktop on Mac. |
| Linux distributions | Docker 19.03+ Docker Compose 2.24.0+ | For installation instructions, see Install Docker Engine and Install Docker Compose. |
| Windows with WSL 2 enabled | Docker Desktop with Docker Compose 2.24.0+ | Store source code and data bound to Linux containers in the Linux file system rather than Windows. For installation instructions, see Install Docker Desktop on Windows. |
Deploy and Start
Start Dify
-
Navigate to the
dockerdirectory in the Dify source code: -
Copy the essential environment configuration file:
To customize your deployment later, see Customize.
-
Start the containers:
Dify requires Docker Compose 2.24.0 or later. Run
docker compose versionto confirm.The following containers will be started:- 5 core services:
api,worker,worker_beat,web,plugin_daemon - 6 dependent components:
weaviate,db_postgres,redis,nginx,ssrf_proxy,sandbox
- 5 core services:
-
Verify that all containers are running successfully:
You should see output similar to the following, with each container in the
Uporhealthystatus:
Access
-
Open the administrator initialization page to set up the admin account:
-
After completing the admin account setup, log in to Dify at:
Customize
To customize your deployment, edit environment variables in the relevant file, then restart Dify.Edit Environment Variables
-
Essential startup values live in
docker/.env, which you created fromdocker/.env.exampleduring deployment. Edit them directly. -
Optional or provider-specific settings have templates under
docker/envs/. To override a default value, copy the matching template (drop the.examplesuffix), then edit your copy. For example:
docker/.env take precedence over values in any docker/envs/*.env files.Upgrade
Upgrade steps may vary between releases. Refer to the upgrade guide for your target version provided in the Releases page.After upgrading, compare each
.env.example with its matching .env for new or changed variables.