How to run PostgreSQL in Docker | Beginners Tutorial

Published September 16, 2021 24 Views

In this video, we will learn how to get PostgreSQL running in a Docker container so that you can run and utilize the Relational DB locally without the need to install PostgreSQL. We will be using GoLang to test the container to query a simple table.

We will take it up a step and use Docker Compose so we can use .env files, volumes for initilizing the DB and keeping state through restarts and crashes.

More information on environment variables that PostgreSQL's container will recognize can be found at:

If you wanna support my channel, you can buy me a coffee:
Coffee make the code go!!!

All code found in this video will be at:

Let me know if you have any issues!

What else would you like me to cover?

Until next time...

#nerdcademy #docker #postgresql

Loading comments...