Member-only story

Docker Compose Postgres initdb

Onexlab

--

In this article, you will learn how to do Postgres seeding using Docker Compose.

Video Link

Onexlab Udemy

Let’s Start Creating Docker Seeding

Hope you are familiar with “Docker-Compose”

Folder structure

Project
├── docker-compose.yml (File)
├── docker_postgres_init.sql (File)

Create a new file docker-compose.yml

Above file, we have created a Postgres Docker container with Port No: 5432

As well as set environment variables such as default username, password of Postgres

--

--

No responses yet