Dify Premium is our AWS AMI offering that allows custom branding and is one-click deployable to your AWS VPC as an EC2. Head to to subscribe. It's useful in a couple of scenarios:
You're looking to create one or a few applications as a small/medium business and you care about data residency.
You are interested in , but your use case require more resource than supported by the .
You'd like to run a POC before adopting Dify Enterprise within your organization.
Setup
If this is your first time accessing Dify, enter the Admin initialization password (set to your EC2's instance ID) to start the set up process.
After the AMI is deployed, access Dify via the instance's public IP found in th EC2 console (HTTP port 80 is used by default).
v1.0.0 supports deployment via Docker Compose. Navigate to your Dify project path and run the following commands to upgrade to the Dify version:
git checkout 1.0.0 # Switch to the 1.0.0 branchcd dockerdocker compose -f docker-compose.yaml up -d
3. Migrate Tools to Plugins
The purpose of this step is to automatically migrate the tools and model vendors previously used in the Community Edition and install them into the new plugin environment.
Run the docker ps command to check the docker-api container ID.
Example:
docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES417241cd**** nginx:latest "sh -c 'cp /docker-e…" 3 hours ago Up 3 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp docker-nginx-1f84aa773**** langgenius/dify-api:1.0.0 "/bin/bash /entrypoi…" 3 hours ago Up 3 hours 5001/tcp docker-worker-1a3cb19c2**** langgenius/dify-api:1.0.0 "/bin/bash /entrypoi…" 3 hours ago Up 3 hours 5001/tcp docker-api-1
Run the command docker exec -it a3cb19c2**** bash to enter the container terminal, and then run:
poetry run flask extract-plugins --workers=20
If an error occurs, it is recommended to first install the poetry environment on the server as per the prerequisites. If the terminal asks for input after running the command, press “Enter” to skip the input.
This command will extract all models and tools currently in use in the environment. The workers parameter controls the number of parallel processes used during extraction and can be adjusted as needed. After the command runs, it will generate a plugins.jsonl file containing plugin information for all workspaces in the current Dify instance.
Ensure your network can access the public internet and support access to: https://marketplace.dify.ai. Continue running the following command in the docker-api-1 container:
poetry run flask install-plugins --workers=2
This command will download and install all necessary plugins into the latest Community Edition. When the terminal shows Install plugins completed., the migration is complete.
Customizing
Just like self-hosted deploy, you may modify the environment variables under .env in your EC2 instance as you see fit. Then, restart Dify with:
docker-compose downdocker-compose -f docker-compose.yaml -f docker-compose.override.yaml up -d
WebApp Logo & Branding Customization
You can enable this feature in Customization under settings, enable Remove Powered by Dify and upload your own logo.