Skip to content

hellof20/dify-deploy-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Dify on Google Cloud

  • Data is stored in Cloud SQL and Memstore for Redis to improve durability, and the components of Dify are deployed in GKE to improve reliability and scalability.
  • Cloud Armor and Global Load Balancing can provide global acceleration capabilities, DDoS protection, and WAF strategies.

Architect

image

How to use

Open in Cloud Shell

  • set parameters
export PROJECT_ID=your_project_id
export REGION=us-central1
export VPC_NETWORK=your_vpc_network
export GKE_CLUSTER_NAME=dify
export REDIS_CLUSTER_NAME=dify
export DB_CLUSTER_NAME=dify
export DB_PASSWORD=your_password
export DIFY_VERSION=0.6.12
export GOOGLE_STORAGE_BUCKET_NAME=your_bucket_name
export ZONE=${REGION}-b
  • deploy
bash deploy.sh
  • wait for the script to finish, it takes about 15 minutes

Clean resources

  • set parameters
PROJECT_ID=speedy-victory-336109
REGION=us-central1
VPC_NETWORK=myvpc
GKE_CLUSTER_NAME=dify
REDIS_CLUSTER_NAME=dify
DB_CLUSTER_NAME=dify
  1. clean
bash clean.sh

Upgrade Dify version

todo

About

Deploy Dify on Google Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages