Documentation Index
Fetch the complete documentation index at: https://dify-6c0370d8-codex-docker-env-split-docs.mintlify.app/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 example environment configuration file:
The root
.envfile contains the essential startup values. Optional and provider-specific settings live underenvs/as.env.examplefiles. Copy only the files you need without the.examplesuffix before editing those advanced settings. -
Start the containers:
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
Modify environment variables in your local.env file, then restart Dify to apply the changes:
envs/ without the .example suffix, then edit the copied file. For example:
.env take precedence over values in files under envs/.
Upgrade
Upgrade steps may vary between releases. Refer to the upgrade guide for your target version provided in the Releases page.After upgrading, check whether
.env.example or any copied envs/**/*.env.example files have changed, then update your local .env and optional envs/**/*.env files accordingly.