You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/self-host/configuration/environments.mdx
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,21 @@ description: Reference for all environment variables used by Dify self-hosted de
6
6
Dify works out of the box with default settings. You can customize your deployment by modifying the environment variables in the `.env` file.
7
7
8
8
<Tip>
9
-
After upgrading Dify, run `diff .env.env.example` in the `docker` directory to check for newly added or changed variables, then update your`.env` file accordingly.
9
+
After upgrading Dify, compare `.env` with `.env.example` in the `docker` directory. If you copied optional files under `envs/`, compare each copied`.env` file with its matching `.env.example` file.
10
10
</Tip>
11
11
12
+
## Configuration Files
13
+
14
+
Docker Compose reads essential startup values from `docker/.env`, which you create from `docker/.env.example`. Optional and provider-specific variables live in `docker/envs/**/*.env.example`.
15
+
16
+
To customize optional settings, copy the matching file without the `.example` suffix, then edit the copied file. For example:
Values in `docker/.env` take precedence over values in files under `docker/envs/`. This page lists variables from both `docker/.env.example` and the optional examples under `docker/envs/`.
23
+
12
24
## Common Variables
13
25
14
26
These URL variables configure the addresses of Dify's various services.
@@ -1294,6 +1306,8 @@ These configure the Squid-based SSRF proxy container that blocks requests to int
1294
1306
1295
1307
## Docker Compose
1296
1308
1309
+
These variables stay in `docker/.env` because Docker Compose uses them to select profiles and expose ports before containers start.
1310
+
1297
1311
| Variable | Default | Description |
1298
1312
|---|---|---|
1299
1313
|`COMPOSE_PROFILES`|`${VECTOR_STORE:-weaviate},${DB_TYPE:-postgresql}`| Automatically selects which service containers to start based on your database and vector store choices. For example, setting `DB_TYPE=mysql` starts MySQL instead of PostgreSQL. |
@@ -1614,4 +1628,4 @@ The plugin daemon can store plugin packages in different storage backends. Confi
1614
1628
|`PLUGIN_VOLCENGINE_TOS_REGION`| (empty) | Volcengine TOS region. |
Copy file name to clipboardExpand all lines: en/self-host/platform-guides/dify-premium.mdx
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
title: Dify Premium on AWS
3
+
description: Deploy, customize, and upgrade Dify Premium on AWS Marketplace
3
4
---
4
5
5
6
Dify Premium is our AWS AMI offering that allows custom branding and is one-click deployable to your AWS VPC as an EC2 instance. Head to [AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6) to subscribe. It's useful in a couple of scenarios:
@@ -21,8 +22,8 @@ If this is your first time accessing Dify, enter the Admin initialization passwo
21
22
Just like a self-hosted deployment, you may modify the environment variables in the `.env` file in your EC2 instance as you see fit. Then, restart Dify with:
22
23
23
24
```bash
24
-
docker-compose down
25
-
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml up -d
25
+
dockercompose down
26
+
dockercompose -f docker-compose.yaml -f docker-compose.override.yaml up -d
26
27
```
27
28
28
29
### Web App Logo & Branding
@@ -41,7 +42,7 @@ In the EC2 instance, run the following commands:
41
42
<Steptitle="Stop the Running Services">
42
43
```bash
43
44
cd /dify
44
-
docker-compose down
45
+
dockercompose down
45
46
```
46
47
</Step>
47
48
<Steptitle="Back Up Your Data">
@@ -68,16 +69,16 @@ In the EC2 instance, run the following commands:
68
69
```
69
70
</Step>
70
71
<Steptitle="Check for New Environment Variables">
71
-
New versions may introduce new environment variables in `.env.example`. Compare it with your current `.env` and add any missing variables:
72
+
New versions may introduce variables in `.env.example` or optional examples under `envs/`. Compare `.env` with `.env.example`, and repeat the comparison for any copied `envs/**/*.env` file against its matching `.env.example` file:
72
73
73
74
```bash
74
75
diff /dify/.env /dify/.env.example
75
76
```
76
77
</Step>
77
78
<Steptitle="Start Services">
78
79
```bash
79
-
docker-compose pull
80
-
docker-compose -f docker-compose.yaml -f docker-compose.override.yaml up -d
80
+
dockercompose pull
81
+
dockercompose -f docker-compose.yaml -f docker-compose.override.yaml up -d
| macOS 10.14 or later | Docker Desktop | Configure the Docker virtual machine with at least 2 virtual CPUs and 8 GiB of memory. <br></br><br></br>For installation instructions, see [Install Docker Desktop on Mac](https://docs.docker.com/desktop/mac/install/). |
24
-
| Linux distributions | Docker 19.03+<br></br><br></br>Docker Compose 1.28+ | For installation instructions, see [Install Docker Engine](https://docs.docker.com/engine/install/) and [Install Docker Compose](https://docs.docker.com/compose/install/). |
25
-
| Windows with WSL 2 enabled | Docker Desktop | Store source code and data bound to Linux containers in the Linux file system rather than Windows. <br></br><br></br>For installation instructions, see [Install Docker Desktop on Windows](https://docs.docker.com/desktop/windows/install/#wsl-2-backend). |
| 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. <br></br><br></br>For installation instructions, see [Install Docker Desktop on Mac](https://docs.docker.com/desktop/mac/install/). |
25
+
| Linux distributions | Docker 19.03+<br></br><br></br>Docker Compose 2.24.0+ | For installation instructions, see [Install Docker Engine](https://docs.docker.com/engine/install/) and [Install Docker Compose](https://docs.docker.com/compose/install/). |
26
+
| 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. <br></br><br></br>For installation instructions, see [Install Docker Desktop on Windows](https://docs.docker.com/desktop/windows/install/#wsl-2-backend). |
26
27
27
28
28
29
## Deploy and Start
@@ -46,22 +47,19 @@ Make sure your machine meets the following minimum system requirements.
46
47
2. Copy the example environment configuration file:
47
48
48
49
```bash
49
-
cp .env.example .env
50
+
cp .env.example .env
50
51
```
51
52
52
-
3. Start the containers using the command that matches your Docker Compose version:
53
+
The root `.env` file contains the essential startup values. Optional and provider-specific settings live under `envs/` as `.env.example` files. Copy only the files you need without the `.example` suffix before editing those advanced settings.
53
54
54
-
<CodeGroup>
55
-
```bash Docker Compose V2
56
-
docker compose up -d
57
-
```
58
-
```bash Docker Compose V1
59
-
docker-compose up -d
60
-
```
61
-
</CodeGroup>
55
+
3. Start the containers:
56
+
57
+
```bash
58
+
docker compose up -d
59
+
```
62
60
63
61
<Tip>
64
-
Run `docker compose version`to check your Docker Compose version.
62
+
Dify uses optional Compose `env_file` entries. Run `docker compose version`and make sure your Docker Compose version is 2.24.0 or later.
65
63
</Tip>
66
64
67
65
The following containers will be started:
@@ -137,13 +135,21 @@ Make sure your machine meets the following minimum system requirements.
137
135
138
136
## Customize
139
137
140
-
Modify the environment variable values in your local `.env` file, then restart Dify to apply the changes:
138
+
Modify environment variables in your local `.env` file, then restart Dify to apply the changes:
141
139
142
140
```bash
143
141
docker compose down
144
142
docker compose up -d
145
143
```
146
144
145
+
For optional or provider-specific settings, copy the matching file from `envs/` without the `.example` suffix, then edit the copied file. For example:
Values in `.env` take precedence over values in files under `envs/`.
152
+
147
153
<Tip>
148
154
For more information, see [environment variables](/en/self-host/configuration/environments).
149
155
</Tip>
@@ -154,6 +160,6 @@ Upgrade steps may vary between releases. Refer to the upgrade guide for your tar
154
160
155
161
<Note>
156
162
157
-
After upgrading, check whether the `.env.example`file has changed and update your local `.env`file accordingly.
163
+
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.
Copy file name to clipboardExpand all lines: en/self-host/troubleshooting/weaviate-v4-migration.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
title: Weaviate Migration Guide upgrading to Client v4 and Server 1.27+
3
+
description: Upgrade Weaviate server and migrate data for Dify deployments that use weaviate-client v4
3
4
---
4
5
5
6
> This guide explains how to migrate from Weaviate client v3 to v4.17.0 and upgrade your Weaviate server from version 1.19.0 to 1.27.0 or higher. This migration is required for Dify versions that include the weaviate-client v4 upgrade.
@@ -137,7 +138,7 @@ Restart Weaviate to apply the change:
0 commit comments