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

mem_limit in docker-compose.yml #18

Open
hazartilirot opened this issue Jan 6, 2022 · 2 comments
Open

mem_limit in docker-compose.yml #18

hazartilirot opened this issue Jan 6, 2022 · 2 comments

Comments

@hazartilirot
Copy link

Well, according to docs the mem_limit: 128m directive is available in v2 not in v3.
https://docs.docker.com/compose/compose-file/compose-file-v3/

Dunno if it's relevant at all...

If you use JetBrains IDE like GoLand or Webstorm, there is a schema mapping helping you to compose a file. If you selected docker-compose.yml schema and then switch version: from "3.9" to "2.4" it shows you the unavailable directive. It's really helpful in case you didn't know.

@hazartilirot
Copy link
Author

So I've just come to the deployment stage - it failed since I used docker-compose.yml version: "2.4". Required 3

Just delete mem_limit - it isn't a necessary directive.

@hazartilirot
Copy link
Author

Two hours are spent on a deployment stage! Freaking awesome! Now, I can go to bed.

image

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

No branches or pull requests

1 participant