Resource allocation to all apps in a container

I have some apps running in a container. I did it through supervisor.Now I want to allocate the resources to each app inside the container as per the need .so how do I allocate the resources?

Can you please be much more specific about what you did, and what you are trying to achieve?

I created a container having two java applications .I used supervisor to control them.Now I want to allocate say cpu or memory to each of them as per the need.Can I allocate it .is it possible to allocate resources to diff. applications within a container . can u plz explain?

not at the Docker level - to do that, you would put the applications into separate containers, and set the constraints on each container.