Cpu_quota in dockercompose.yml is missing after creating stack through Rancher API

In my dockercompose.yml, I specified:
mem_limit: 256000000 memswap_limit: 1000000000 cpu_quota: 20000
After I create the stack, only mem_limit: 256000000 left. All of the other setups are missing.

Why? A bug?

It is definitely a bug.

For the memswap_limit, it’s set in the API but it’s not being exported in the yaml.

For the cpu_quota, it doesn’t look like it’s in the API as something that can be set for a service/container. The cpu_quota is already covered in this Github issue as something that needs to be added.