Skip to main content

Offline Deployment

For offline environments, Dify can be deployed using either of the following two methods:
  1. Set up a domain whitelist in your network configuration to allow access to necessary domains, or
  2. 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 access docker.io, you can use a custom image repository to replace the default image addresses.
  1. 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.
  1. Replace pipMirror with your custom mirror source URL.
  2. Sync the images to your private image repository.