Requirements
- Release Log: https://langgenius.github.io/dify-enterprise-docker-compose/
- Docker
- Docker Compose
- Linux Server
- Warning: Don’t support Docker Desktop for Windows and Mac.
- Minimum: 4 CPU cores, 16 GB memory, 100 GB disk space.
Quick Start
Download
Download a specific version from Dify Enterprise repository. Using wget:Installation
-
Extract the contents of the downloaded file to your deployment directory.
-
Start docker compose.
-
How to Access Dify Enterprise.
- Get the IP address of your server and change the hosts file on your local machine to point the domain to the IP address.
- Verify Dify Services Status.
- License Activation.
Upgrade From Community Edition
-
Create the enterprise database (make sure your community version is running).
Tip: You may need to adjust the container name based on your running containers. Use
docker container lsto find the name of thedbservice. -
Shut down the community version.
-
Backup your data and settings (you may need to use
sudo). -
Delete all files and folders from the Community version, except for the
backup.tgzanddify-docker-compose-<version>.tgz. -
Extract the contents of the downloaded file to your deployment directory.
-
Restore your backup by deleting the
volumesfolder.Then run: -
If you have custom configurations (e.g.,
docker-compose.yaml,ssrf_proxy/squid.conf, ornginx/conf.d/default.conf), update the corresponding files with your changes. -
Start docker compose.
-
How to Access Dify Enterprise.
- Get the IP address of your server and change the hosts file on your local machine to point the domain to the IP address.
- Verify Dify Services Status.
- License Activation.
Upgrade From Previous Enterprise Edition
-
Backup your data and settings (you may need to use sudo).
-
Delete all files and folders from the Community version, except for the
backup.tgzanddify-docker-compose-<version>.tgz. -
Extract the contents of the downloaded file to your deployment directory.
-
Restore your backup by deleting the
volumesfolder.Then run: -
If you have custom configurations (e.g.,
docker-compose.yaml,ssrf_proxy/squid.conf, ornginx/conf.d/default.conf), update the corresponding files with your changes. -
Start docker compose:
Advanced Configuration
Domain Requirements
Dify Enterprise requires 5 domains to be set up. The domains are:- Console: console.dify.local
- Services API: api.dify.local
- APP: app.dify.local
- Files: upload.dify.local
- Enterprise: enterprise.dify.local
.env file in your deployment directory.
Persistence Storage
By defualt, Enterprise Edition uses local storage. To change this, add the relevant configurations in the.env file in your deployment directory. For example, to use AWS S3:
Postgres Database
To change this, add the relevant configurations to the.env file in your deployment directory.
Redis Database
To change this, add the relevant configurations to the.env file in your deployment directory.
Vector Database
By defualt, Enterprise Edition uses Weaviate as vector database. To change this, add the relevant configurations to the.env file in your deployment directory. For example, to use Qdrant: