Adding a Seed File to Populate Dockerized PostgreSQL

April 10, 2016

I was trying to figure out how to seed my PostgreSQL database in my dockerized application. It’s actually very straightforward. You can simply put all your *.sql file inside /docker-entrypoint-initdb.d/.