This is a guideline for how to dockerize your Rails application with Puma and NGINX from your application’s git link.

What this tutorial is trying to achieve is creating two seperate container -one for your app and another for its database-. The diagram below explains the interaction between them.

Container Interaction Diagram

BUILD YOUR OWN IMAGE AND RUN YOUR CONTAINERS

I created a Docker image builder repo which helps you to build your application’s own docker image. Just follow the steps below:

alican erdogan

Nemo vir est qui mundum non reddat meliorem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store