Running in a docker container in production with nginx and puma.

Has anyone had any experience of running a rails app in a production setup, on a docker container(we’re on AWS, makes little difference) with puma and nginx as a proxy in front of it? We’re also currently managing the docker engine with docker cloud, but that is likely to change pretty soon.

We’ve got it up and running with a very basic unicorn/nginx setup, but now I need to fine tune the memory and CPU usage of a much busier site and wanted to try out using puma and attempting to getting the balance right between the nginx processes and the puma threads.

Be nice to work through it with someone who has either done it before, or who’s interested.