How to Create a Docker Postgres Image with Preloaded Data

Опубликовано: 02 Октябрь 2024
на канале: WittCode
1,099
40

Learn how to create a Postgres Docker image with preloaded data. Specifically, we will create a table and insert some data into a Postgres image using initialization scripts.

📚 Docker Crash Course 📚
https://courses.wittcode.com

💻 My Software 💻
My Chrome Extension WittCepter - https://chromewebstore.google.com/det...

👩‍💻 Download Code 👨‍💻
https://blog.wittcode.com

⌛ Timestamps ⌛
0:00 - Introduction
0:15 - Docker Initialization Scripts
0:38 - docker-entrypoint-initdb.d Folder
1:26 - Building the Docker Postgres Image and Container
2:28 - Docker Volumes and Initialization Scripts
3:02 - Querying the Docker Postgres Database
3:36 - Outro