How to deploy Dify on local host server #12159

Closed
opened 2026-02-21 19:06:05 -05:00 by yindo · 2 comments
Owner

Originally created by @chzhyang on GitHub (Mar 26, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

How to deploy Dify without docker, docker compose and middleware images?
i find the method for Dify's deployment using source code, but this need a pre-requirement: use docker-compose to run middleware containers. So is there any guide for these middleware setup on local host?

https://github.com/langgenius/dify-docs/blob/main/zh_CN/getting-started/install-self-hosted/local-source-code.md

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @chzhyang on GitHub (Mar 26, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. How to deploy Dify without docker, docker compose and middleware images? i find the method for Dify's deployment using source code, but this need a pre-requirement: use docker-compose to run middleware containers. So is there any guide for these middleware setup on local host? https://github.com/langgenius/dify-docs/blob/main/zh_CN/getting-started/install-self-hosted/local-source-code.md ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 🌚 invalid label 2026-02-21 19:06:05 -05:00
yindo closed this issue 2026-02-21 19:06:05 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 26, 2025):

I found some relevant discussions and issues that might help you with deploying Dify on a local host without using Docker or Docker Compose:

  1. There is an open discussion titled How can I run DIFY locally without Docker? which might provide some insights or solutions.

  2. An open issue titled We can't use the Docker environment suggests a solution for installing Dify from source on a clean Ubuntu environment without using Docker. It involves verifying dependencies, cloning the repository, installing backend and frontend dependencies, setting up middleware services like PostgreSQL, Redis, and Weaviate directly on your system, and then running the application.

  3. Another closed issue titled how to Deploy Dify WITHOUT docker? provides similar steps for deploying Dify without Docker.

Unfortunately, I couldn't find detailed steps for manually installing and configuring PostgreSQL, Redis, and Weaviate on a local host specifically for Dify. You might need to refer to the official documentation of these services for installation and configuration guidance.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 26, 2025): <!-- Answer --> I found some relevant discussions and issues that might help you with deploying Dify on a local host without using Docker or Docker Compose: 1. There is an open discussion titled [How can I run DIFY locally without Docker?](https://github.com/langgenius/dify/discussions/11758) which might provide some insights or solutions. 2. An open issue titled [We can't use the Docker environment](https://github.com/langgenius/dify/issues/9329) suggests a solution for installing Dify from source on a clean Ubuntu environment without using Docker. It involves verifying dependencies, cloning the repository, installing backend and frontend dependencies, setting up middleware services like PostgreSQL, Redis, and Weaviate directly on your system, and then running the application. 3. Another closed issue titled [how to Deploy Dify WITHOUT docker?](https://github.com/langgenius/dify/issues/16734) provides similar steps for deploying Dify without Docker. Unfortunately, I couldn't find detailed steps for manually installing and configuring PostgreSQL, Redis, and Weaviate on a local host specifically for Dify. You might need to refer to the official documentation of these services for installation and configuration guidance. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c243e5bc-003a-4d43-9b4b-ad0a56952bfc?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 26, 2025):

For questions, please use discussion instead. Also make sure you have searched existing issues.

@crazywoola commented on GitHub (Mar 26, 2025): For questions, please use discussion instead. Also make sure you have searched existing issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12159