It is simple to dockerize your rails app. Rails maintain an official release of rails base image, where you have all your basic prerequisites installed.
So you can create your docker file.
And the docker-compose.yml,
You would have to whitelist
0.0.0.0 for rails to log web console. In your
Here is a sample project you can play with.
Go on and enjoy,
docker-compose up web.