Photo by Joshua Reddekopp on Unsplash

I had written a dockerized rest API server with a docker-compose. Everything was running fine locally, so now it was time to deploy it. Heroku is my platform of choice, but after looking up a bit I found that it does not support docker-compose. So in this article, we will be deploying docker and setting up a database on Heroku.

Note: This article requires that you have a containerized web application setup locally. If you do not, you may clone the sample repository as follows

$ git clone

We will be using a container registry for Docker deployment. Firstly…

Sparsh Arora

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