# Instalação e Configuração Dify

# Instalação Dify oficial

Link: [https://github.com/langgenius/dify](https://github.com/langgenius/dify) git clone: [https://github.com/langgenius/dify.git](https://github.com/langgenius/dify.git)

[![cover-v5-optimized](https://github.com/langgenius/dify/raw/main/images/GitHub_README_if.png)](https://github.com/langgenius/dify/blob/main/images/GitHub_README_if.png)

📌 [Introducing Dify Workflow File Upload: Recreate Google NotebookLM Podcast](https://dify.ai/blog/introducing-dify-workflow-file-upload-a-demo-on-ai-podcast)

[Dify Cloud](https://cloud.dify.ai/) · [Self-hosting](https://docs.dify.ai/getting-started/install-self-hosted) · [Documentation](https://docs.dify.ai/) · [Dify edition overview](https://dify.ai/pricing)

[![Static Badge](https://camo.githubusercontent.com/e4d3e3a3b7203f1bd5a1e9144ce7af493c3183bf6a8546a988590c7f909b3d81/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50726f647563742d463034343338)](https://dify.ai/) [![Static Badge](https://camo.githubusercontent.com/f3d943aef56f510c9781e462c999559456eb28e3f81ca50706c78e6c08d72604/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f667265652d70726963696e673f6c6f676f3d6672656526636f6c6f723d253230253233313535454546266c6162656c3d70726963696e67266c6162656c436f6c6f723d253230253233353238626666)](https://dify.ai/pricing) [![chat on Discord](https://camo.githubusercontent.com/ffe5c639c62f16796a399e01c9f904c7b4dea8ca9445bb96f802271d98ddc030/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f313038323438363635373637383331313435343f6c6f676f3d646973636f7264266c6162656c436f6c6f723d253230253233353436326562266c6f676f436f6c6f723d25323025323366356635663526636f6c6f723d253230253233353436326562)](https://discord.gg/FngNHpbcY7) [![join Reddit](https://camo.githubusercontent.com/aad1bd0edc26623c31a00122831e51ad7a3dc4990e67ff71db55482f9fead6db/68747470733a2f2f696d672e736869656c64732e696f2f7265646469742f7375627265646469742d73756273637269626572732f6469667961693f7374796c653d706c6173746963266c6f676f3d726564646974266c6162656c3d72253246646966796169266c6162656c436f6c6f723d7768697465)](https://reddit.com/r/difyai) [![follow on X(Twitter)](https://camo.githubusercontent.com/9e2ee38a4e37afa0e34d51e110505a5effac5baad24b2e9f704328f58fdfefba/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f646966795f61693f6c6f676f3d5826636f6c6f723d253230253233663566356635)](https://twitter.com/intent/follow?screen_name=dify_ai) [![follow on LinkedIn](https://camo.githubusercontent.com/743e90bfd43f3a5240288c1e92ca222bc2550b6d4049f39817a0aa6e82536cb0/68747470733a2f2f637573746f6d2d69636f6e2d6261646765732e64656d6f6c61622e636f6d2f62616467652f4c696e6b6564496e2d3041363643323f6c6f676f3d6c696e6b6564696e2d7768697465266c6f676f436f6c6f723d666666)](https://www.linkedin.com/company/langgenius/) [![Docker Pulls](https://camo.githubusercontent.com/998ddcc6017278e9c17929934047ebf52939ff27ffa80414088d57e466b89bc1/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f6c616e6767656e6975732f646966792d7765623f6c6162656c436f6c6f723d25323025323346444230363226636f6c6f723d253230253233663739303039)](https://hub.docker.com/u/langgenius) [![Commits last month](https://camo.githubusercontent.com/f78778297444feef3cdb23823cca530246ea07d611261d75261c5239918fd723/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f6c616e6767656e6975732f646966793f6c6162656c436f6c6f723d25323025323333326235383326636f6c6f723d253230253233313262373661)](https://github.com/langgenius/dify/graphs/commit-activity) [![Issues closed](https://camo.githubusercontent.com/1ca2342e333e2f72efb1f139e165baefb3a701389dfa666720ea8fcdc49fddf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7365617263683f71756572793d7265706f2533416c616e6767656e697573253246646966792532306973253341636c6f736564266c6162656c3d697373756573253230636c6f736564266c6162656c436f6c6f723d25323025323337643839623026636f6c6f723d253230253233356436623938)](https://github.com/langgenius/dify/) [![Discussion posts](https://camo.githubusercontent.com/d8b118db444d52194c7c8decdcd7024154c327061e6963decbb94fa22f07278a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f6c616e6767656e6975732f646966793f6c6162656c436f6c6f723d25323025323339623861666226636f6c6f723d253230253233376135616638)](https://github.com/langgenius/dify/discussions/)

[![README in English](https://camo.githubusercontent.com/7b4d7d7635efe8fb99f1d7d76ac00635e1cc9a591384a404abef3e1e23b93f6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456e676c6973682d643964396439)](https://github.com/langgenius/dify/blob/main/README.md) [![繁體中文文件](https://camo.githubusercontent.com/3e6e159f63ce3755402e9cdad0c4c5e92e311387805915af935c48b917605a84/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe7b981e9ab94e4b8ade696872d643964396439)](https://github.com/langgenius/dify/blob/main/README_TW.md) [![简体中文版自述文件](https://camo.githubusercontent.com/8f15589a114444cac77ce5357c770e152bd2e9deceda4cee7df89c9731863da8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe7ae80e4bd93e4b8ade696872d643964396439)](https://github.com/langgenius/dify/blob/main/README_CN.md) [![日本語のREADME](https://camo.githubusercontent.com/ea035aa20ea354b2145233d774e13285f2ae9926010e55527fe562c247aca245/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe697a5e69cace8aa9e2d643964396439)](https://github.com/langgenius/dify/blob/main/README_JA.md) [![README en Español](https://camo.githubusercontent.com/9bf1629ab426db622af4d4ab12fc638b406739cffdd2da7330cbbfe52948a97b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f45737061c3b16f6c2d643964396439)](https://github.com/langgenius/dify/blob/main/README_ES.md) [![README en Français](https://camo.githubusercontent.com/a2bbe876b48709007980dccccdec986d82771ee47513016cb196a45fbbbba1e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616ec3a76169732d643964396439)](https://github.com/langgenius/dify/blob/main/README_FR.md) [![README tlhIngan Hol](https://camo.githubusercontent.com/082cbac811dfeca1a50ffd5326a54584d9dc1fd8cf37fdc7eb18d44b1b32355b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b6c696e676f6e2d643964396439)](https://github.com/langgenius/dify/blob/main/README_KL.md) [![README in Korean](https://camo.githubusercontent.com/a9ddea687e96c0e46575cb3eaffdfd4ef222153acaaaab3b8f4194555a1eb82f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fed959ceab5adec96b42d643964396439)](https://github.com/langgenius/dify/blob/main/README_KR.md) [![README بالعربية](https://camo.githubusercontent.com/e0906774800a5dba15c3afaaa32ffbe18e380eb9a92b89aac470c8f3b10dc63d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fd8a7d984d8b9d8b1d8a8d98ad8a92d643964396439)](https://github.com/langgenius/dify/blob/main/README_AR.md) [![Türkçe README](https://camo.githubusercontent.com/19e23c764f64751b25fa2f92b0dfe9e05c2cdee21abb610cc18e73b58a8b7f1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54c3bc726bc3a7652d643964396439)](https://github.com/langgenius/dify/blob/main/README_TR.md) [![README Tiếng Việt](https://camo.githubusercontent.com/75837818b49dda490093a0bb9b092603f40a49a27c3d03f09bac1f96b2a77fed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54692545312542412542466e672532305669254531254242253837742d643964396439)](https://github.com/langgenius/dify/blob/main/README_VI.md) [![README in Deutsch](https://camo.githubusercontent.com/7a8c3d305625c58014d956713a840fc0d8e62f61c06ce140c6892c680c0e7bd4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4765726d616e2d643964396439)](https://github.com/langgenius/dify/blob/main/README_DE.md) [![README in বাংলা](https://camo.githubusercontent.com/74458fbed1afe67197e4ebe11d19c610844cebfeed98e427ad9af1ac5a1652c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe0a6ace0a6bee0a682e0a6b2e0a6be2d643964396439)](https://github.com/langgenius/dify/blob/main/README_BN.md)

Dify is an open-source LLM app development platform. Its intuitive interface combines agentic AI workflow, RAG pipeline, agent capabilities, model management, observability features, and more, allowing you to quickly move from prototype to production.

## Quick start

<div class="markdown-heading" dir="auto" id="bkmrk--1" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#quick-start)</div>> Before installing Dify, make sure your machine meets the following minimum system requirements:
> 
> - CPU &gt;= 2 Core
> - RAM &gt;= 4 GiB

The easiest way to start the Dify server is through [docker compose](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml). Before running Dify with the following commands, make sure that [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) are installed on your machine:

```
cd dify
cd docker
cp .env.example .env
docker compose up -d
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--4" style="text-align: justify;"><div class="zeroclipboard-container"><svg aria-hidden="true" class="octicon octicon-copy js-clipboard-copy-icon" data-view-component="true" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></div></div>After running, you can access the Dify dashboard in your browser at [http://localhost/install](http://localhost/install) and start the initialization process.

#### Seeking help

<div class="markdown-heading" dir="auto" id="bkmrk--5" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#seeking-help)</div>Please refer to our [FAQ](https://docs.dify.ai/getting-started/install-self-hosted/faqs) if you encounter problems setting up Dify. Reach out to [the community and us](https://github.com/langgenius/dify#community--contact) if you are still having issues.

> If you'd like to contribute to Dify or do additional development, refer to our [guide to deploying from source code](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)

## Key features

<div class="markdown-heading" dir="auto" id="bkmrk--7" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#key-features)</div>**1. Workflow**: Build and test powerful AI workflows on a visual canvas, leveraging all the following features and beyond.

**2. Comprehensive model support**: Seamless integration with hundreds of proprietary / open-source LLMs from dozens of inference providers and self-hosted solutions, covering GPT, Mistral, Llama3, and any OpenAI API-compatible models. A full list of supported model providers can be found [here](https://docs.dify.ai/getting-started/readme/model-providers).

[![image.png](https://capacita.siteinternet.com.br/uploads/images/gallery/2025-06/scaled-1680-/image.png)](https://capacita.siteinternet.com.br/uploads/images/gallery/2025-06/image.png)

**3. Prompt IDE**: Intuitive interface for crafting prompts, comparing model performance, and adding additional features such as text-to-speech to a chat-based app.

**4. RAG Pipeline**: Extensive RAG capabilities that cover everything from document ingestion to retrieval, with out-of-box support for text extraction from PDFs, PPTs, and other common document formats.

**5. Agent capabilities**: You can define agents based on LLM Function Calling or ReAct, and add pre-built or custom tools for the agent. Dify provides 50+ built-in tools for AI agents, such as Google Search, DALL·E, Stable Diffusion and WolframAlpha.

**6. LLMOps**: Monitor and analyze application logs and performance over time. You could continuously improve prompts, datasets, and models based on production data and annotations.

**7. Backend-as-a-Service**: All of Dify's offerings come with corresponding APIs, so you could effortlessly integrate Dify into your own business logic.

## Feature Comparison

<div class="markdown-heading" dir="auto" id="bkmrk--10" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#feature-comparison)</div><table id="bkmrk-feature-dify.ai-lang"><tbody><tr><th align="center">Feature</th><th align="center">Dify.AI</th><th align="center">LangChain</th><th align="center">Flowise</th><th align="center">OpenAI Assistants API</th></tr><tr><td align="center">Programming Approach</td><td align="center">API + App-oriented</td><td align="center">Python Code</td><td align="center">App-oriented</td><td align="center">API-oriented</td></tr><tr><td align="center">Supported LLMs</td><td align="center">Rich Variety</td><td align="center">Rich Variety</td><td align="center">Rich Variety</td><td align="center">OpenAI-only</td></tr><tr><td align="center">RAG Engine</td><td align="center">✅</td><td align="center">✅</td><td align="center">✅</td><td align="center">✅</td></tr><tr><td align="center">Agent</td><td align="center">✅</td><td align="center">✅</td><td align="center">❌</td><td align="center">✅</td></tr><tr><td align="center">Workflow</td><td align="center">✅</td><td align="center">❌</td><td align="center">✅</td><td align="center">❌</td></tr><tr><td align="center">Observability</td><td align="center">✅</td><td align="center">✅</td><td align="center">❌</td><td align="center">❌</td></tr><tr><td align="center">Enterprise Feature (SSO/Access control)</td><td align="center">✅</td><td align="center">❌</td><td align="center">❌</td><td align="center">❌</td></tr><tr><td align="center">Local Deployment</td><td align="center">✅</td><td align="center">✅</td><td align="center">✅</td><td align="center">❌</td></tr></tbody></table>

## Using Dify

<div class="markdown-heading" dir="auto" id="bkmrk--12" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#using-dify)</div>- **Cloud** We host a [Dify Cloud](https://dify.ai/) service for anyone to try with zero setup. It provides all the capabilities of the self-deployed version, and includes 200 free GPT-4 calls in the sandbox plan.
- **Self-hosting Dify Community Edition** Quickly get Dify running in your environment with this [starter guide](https://github.com/langgenius/dify#quick-start). Use our [documentation](https://docs.dify.ai/) for further references and more in-depth instructions.
- **Dify for enterprise / organizations** We provide additional enterprise-centric features. [Log your questions for us through this chatbot](https://udify.app/chat/22L1zSxg6yW1cWQg) or [send us an email](mailto:business@dify.ai?subject=%5BGitHub%5DBusiness%20License%20Inquiry) to discuss enterprise needs.
    
    > For startups and small businesses using AWS, check out [Dify Premium on AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6) and deploy it to your own AWS VPC with one click. It's an affordable AMI offering with the option to create apps with custom logo and branding.

## Staying ahead

<div class="markdown-heading" dir="auto" id="bkmrk--14" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#staying-ahead)</div>Star Dify on GitHub and be instantly notified of new releases.

[![image.png](https://capacita.siteinternet.com.br/uploads/images/gallery/2025-06/scaled-1680-/ayAimage.png)](https://capacita.siteinternet.com.br/uploads/images/gallery/2025-06/ayAimage.png)

## Advanced Setup

<div class="markdown-heading" dir="auto" id="bkmrk--17" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#advanced-setup)</div>If you need to customize the configuration, please refer to the comments in our [.env.example](https://github.com/langgenius/dify/blob/main/docker/.env.example) file and update the corresponding values in your `.env` file. Additionally, you might need to make adjustments to the `docker-compose.yaml` file itself, such as changing image versions, port mappings, or volume mounts, based on your specific deployment environment and requirements. After making any changes, please re-run `docker-compose up -d`. You can find the full list of available environment variables [here](https://docs.dify.ai/getting-started/install-self-hosted/environments).

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)

#### Using Terraform for Deployment

<div class="markdown-heading" dir="auto" id="bkmrk--19" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#using-terraform-for-deployment)</div>Deploy Dify to Cloud Platform with a single click using [terraform](https://www.terraform.io/)

##### Azure Global

<div class="markdown-heading" dir="auto" id="bkmrk--21" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#azure-global)</div>- [Azure Terraform by @nikawang](https://github.com/nikawang/dify-azure-terraform)

##### Google Cloud

<div class="markdown-heading" dir="auto" id="bkmrk--23" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#google-cloud)</div>- [Google Cloud Terraform by @sotazum](https://github.com/DeNA/dify-google-cloud-terraform)

#### Using AWS CDK for Deployment

<div class="markdown-heading" dir="auto" id="bkmrk--25" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#using-aws-cdk-for-deployment)</div>Deploy Dify to AWS with [CDK](https://aws.amazon.com/cdk/)

##### AWS

<div class="markdown-heading" dir="auto" id="bkmrk--27" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#aws)</div>- [AWS CDK by @KevinZhao](https://github.com/aws-samples/solution-for-deploying-dify-on-aws)

## Contributing

<div class="markdown-heading" dir="auto" id="bkmrk--29" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#contributing)</div>For those who'd like to contribute code, see our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md). At the same time, please consider supporting Dify by sharing it on social media and at events and conferences.

> We are looking for contributors to help translate Dify into languages other than Mandarin or English. If you are interested in helping, please see the [i18n README](https://github.com/langgenius/dify/blob/main/web/i18n/README.md) for more information, and leave us a comment in the `global-users` channel of our [Discord Community Server](https://discord.gg/8Tpq4AcN9c).

## Community &amp; contact

<div class="markdown-heading" dir="auto" id="bkmrk--31" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#community--contact)</div>- [GitHub Discussion](https://github.com/langgenius/dify/discussions). Best for: sharing feedback and asking questions.
- [GitHub Issues](https://github.com/langgenius/dify/issues). Best for: bugs you encounter using Dify.AI, and feature proposals. See our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md).
- [Discord](https://discord.gg/FngNHpbcY7). Best for: sharing your applications and hanging out with the community.
- [X(Twitter)](https://twitter.com/dify_ai). Best for: sharing your applications and hanging out with the community.

**Contributors**

### Star history

<div class="markdown-heading" dir="auto" id="bkmrk--33" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#star-history)</div>[![Star History Chart](https://camo.githubusercontent.com/6236cea513c18186b166759cebfb03f62af5c304062b31fa54642a9b2eaadc61/68747470733a2f2f6170692e737461722d686973746f72792e636f6d2f7376673f7265706f733d6c616e6767656e6975732f6469667926747970653d44617465)](https://star-history.com/#langgenius/dify&Date)

## Security disclosure

<div class="markdown-heading" dir="auto" id="bkmrk--36" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#security-disclosure)</div>To protect your privacy, please avoid posting security issues on GitHub. Instead, send your questions to <security@dify.ai> and we will provide you with a more detailed answer.

## License

<div class="markdown-heading" dir="auto" id="bkmrk--38" style="text-align: justify;">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>](https://github.com/langgenius/dify#license)</div>This repository is available under the [Dify Open Source License](https://github.com/langgenius/dify/blob/main/LICENSE), which is essentially Apache 2.0 with a few additional restrictions.