will dify optimise docker compose to local development #7873

Closed
opened 2026-02-21 18:22:48 -05:00 by yindo · 3 comments
Owner

Originally created by @joebnb on GitHub (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.
Originally created by @joebnb on GitHub (Jan 24, 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. 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.
yindo added the 💪 enhancement label 2026-02-21 18:22:48 -05:00
yindo closed this issue 2026-02-21 18:22:48 -05:00
Author
Owner

@joebnb commented on GitHub (Jan 24, 2025):

https://github.com/langflow-ai/langflow/blob/main/deploy/docker-compose.yml seems langflow are much clean

@joebnb commented on GitHub (Jan 24, 2025): https://github.com/langflow-ai/langflow/blob/main/deploy/docker-compose.yml seems langflow are much clean
Author
Owner

@crazywoola commented on GitHub (Jan 24, 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.

@crazywoola commented on GitHub (Jan 24, 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.
Author
Owner

@joebnb commented on GitHub (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?

@joebnb commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7873