Offline Deployment
For offline environments, Dify can be deployed using either of the following two methods:- Set up a domain whitelist in your network configuration to allow access to necessary domains, or
- Follow the steps below to achieve a completely network-isolated deployment.
Whitelist Domains
If you choose to set up a domain whitelist, ensure that the following domains are accessible:Disable Marketplace Access
By disabling the marketplace connection, you can prevent issues caused by failed external requests:Configure Custom Image Repository
If your network cannot accessdocker.io, you can use a custom image repository to replace the default image addresses.
- The following images need to be replaced with private images:
gatewayImage: Plugin gateway service image.shaderImage: Shader image used during plugin build.busyBoxImage: Busybox image used during plugin runtime.awsCliImage: AWS CLI tool image. If AWS is not used, this image can be ignored.python3.xx: Base image for building plugins.
-
Replace
pipMirrorwith your custom mirror source URL. - Sync the images to your private image repository.