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

add memory constraints to docker-compose.yml #12537

Closed
fuyufjh opened this issue Sep 26, 2023 · 0 comments · Fixed by #13343
Closed

add memory constraints to docker-compose.yml #12537

fuyufjh opened this issue Sep 26, 2023 · 0 comments · Fixed by #13343
Assignees
Milestone

Comments

@fuyufjh
Copy link
Member

fuyufjh commented Sep 26, 2023

Is your feature request related to a problem? Please describe.

Even though Docker Compose is not recommended for production usage, sometimes users would like to use it for single-node deployment.

https://docs.docker.com/config/containers/resource_constraints/

We can leverage the built-in memory constraint and pass RW the correct total_memory

By the way, need to add restart: always as well.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants