Import data from Dockerized Postgres to Elasticsearch

After setting up Elasticsearch locally I need to seed it with some dummy data.

I came across this article that explain all the steps in details, including populating the postgres with dummy data to begin with.

But I could not use it as-is because I use dockerized postgres.

I also ran into problem with https and elasticdump

I wrote about the problems and solutions on my other blog. Read it here