mirror of
https://github.com/langgenius/dify.git
synced 2026-08-31 21:25:21 +08:00
60 lines
2.8 KiB
Markdown
60 lines
2.8 KiB
Markdown
# Advanced Setup
|
|
|
|
## Custom configurations
|
|
|
|
If you need to customize the configuration, edit `docker/.env`. The essential startup defaults live in [`docker/.env.example`](../docker/.env.example), and optional advanced variables are split under `docker/envs/` by theme. After making any changes, re-run `docker compose up -d` from the `docker` directory. You can find the full list of available environment variables [here](https://docs.dify.ai/getting-started/install-self-hosted/environments).
|
|
|
|
## Metrics Monitoring with Grafana
|
|
|
|
Import the dashboard to Grafana, using Dify's PostgreSQL database as data source, to monitor metrics in granularity of apps, tenants, messages, and more.
|
|
|
|
- [Grafana Dashboard by @bowenliang123](https://github.com/bowenliang123/dify-grafana-dashboard)
|
|
|
|
## Deployment with Kubernetes
|
|
|
|
If you'd like to configure a highly available setup, there are community-contributed [Helm Charts](https://helm.sh/) and YAML files which allow Dify to be deployed on Kubernetes.
|
|
|
|
- [Helm Chart by @LeoQuote](https://github.com/douban/charts/tree/master/charts/dify)
|
|
- [Helm Chart by @BorisPolonsky](https://github.com/BorisPolonsky/dify-helm)
|
|
- [Helm Chart by @magicsong](https://github.com/magicsong/ai-charts)
|
|
- [YAML file by @Winson-030](https://github.com/Winson-030/dify-kubernetes)
|
|
- [YAML file by @wyy-holding](https://github.com/wyy-holding/dify-k8s)
|
|
- [🚀 NEW! YAML files (Supports Dify v1.6.0) by @Zhoneym](https://github.com/Zhoneym/DifyAI-Kubernetes)
|
|
|
|
### Using Terraform for Deployment
|
|
|
|
Deploy Dify to Cloud Platform with a single click using [terraform](https://www.terraform.io/)
|
|
|
|
#### Azure Global
|
|
|
|
- [Azure Terraform by @nikawang](https://github.com/nikawang/dify-azure-terraform)
|
|
|
|
#### Google Cloud
|
|
|
|
- [Google Cloud Terraform by @sotazum](https://github.com/DeNA/dify-google-cloud-terraform)
|
|
|
|
### Using AWS CDK for Deployment
|
|
|
|
Deploy Dify to AWS with [CDK](https://aws.amazon.com/cdk/)
|
|
|
|
#### AWS
|
|
|
|
- [AWS CDK by @KevinZhao (EKS based)](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)
|
|
- [AWS CDK by @tmokmss (ECS based)](https://github.com/aws-samples/dify-self-hosted-on-aws)
|
|
|
|
### Using Alibaba Cloud Computing Nest
|
|
|
|
Quickly deploy Dify to Alibaba cloud with [Alibaba Cloud Computing Nest](https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=Dify%E7%A4%BE%E5%8C%BA%E7%89%88)
|
|
|
|
### Using Alibaba Cloud Data Management
|
|
|
|
One-Click deploy Dify to Alibaba Cloud with [Alibaba Cloud Data Management](https://www.alibabacloud.com/help/en/dms/dify-in-invitational-preview/)
|
|
|
|
### Deploy to AKS with Azure Devops Pipeline
|
|
|
|
One-Click deploy Dify to AKS with [Azure Devops Pipeline Helm Chart by @LeoZhang](https://github.com/Ruiruiz30/Dify-helm-chart-AKS)
|
|
|
|
### Using Sealos for Deployment
|
|
|
|
Deploy Dify with one click using the [Sealos App Store](https://sealos.io/products/app-store/dify/)
|