Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will dify optimise docker compose to local development #13011

Closed
4 of 5 tasks
joebnb opened this issue Jan 24, 2025 · 3 comments
Closed
4 of 5 tasks

will dify optimise docker compose to local development #13011

joebnb opened this issue Jan 24, 2025 · 3 comments
Labels
💪 enhancement New feature or request

Comments

@joebnb
Copy link

joebnb commented Jan 24, 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.

current compose are 26 service included, it's too heavy for sole individual, would decrease unnecessary service like ubuntu server installation offers minimum install ? or give some docs of which service are unnecessary(eg, many dashboard is unnecessary,such kibana opensearch ) also can resolve my issue.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Jan 24, 2025
@joebnb
Copy link
Author

joebnb commented Jan 24, 2025

@crazywoola
Copy link
Member

Only a few of those services will be used even in production.

  • Some of them are optional.
  • Most of them are vector databases.

For local development, there are 5 services only.

You can run docker compose up -d to see how many services will be used.

https://github.com/langgenius/dify/blob/b42b333a72a4ad20ac6b9a9a01bfc42b727ffbb1/docker/docker-compose.middleware.yaml

However you are right about current compose file, this is too big to read through it. If you have a way to manage those deps, feel free to open a pull request.

@joebnb
Copy link
Author

joebnb commented Jan 27, 2025

Only a few of those services will be used even in production.

  • Some of them are optional.
  • Most of them are vector databases.

For local development, there are 5 services only.

You can run docker compose up -d to see how many services will be used.

https://github.com/langgenius/dify/blob/b42b333a72a4ad20ac6b9a9a01bfc42b727ffbb1/docker/docker-compose.middleware.yaml

However you are right about current compose file, this is too big to read through it. If you have a way to manage those deps, feel free to open a pull request.

can i use this simplified compose in production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants