How to specify Memory & CPU limit in version 3 · Issue #4513 · docker/compose

I am unable to specify CPU & memory for services specified in version 3 . With version 2 it works fine with "mem_limit" & "cpu_shares" parameters under the services . But it fails while using versi...