Photo by Geran de Klerk on Unsplash

Use PostgreSQL the Right Way!

Best practices and Tips on how to use and configure PostgreSQL in the best way.

Josue Luzardo Gebrim
4 min readAug 6, 2022

--

This post summarizes some situations and configurations I’ve had to adapt to work with the PostgreSQL database; let’s get to the tips.

Deploy PostgreSQL using Docker Compose:

How many times have you not had to build a quick test environment and have not had a database installed and configured for use, Docker is easy to do:

Create a docker-compose.yaml file with the content below:

With docker-compose installed, run the command below:

Your database can now be used!

Good habits:

--

--

Josue Luzardo Gebrim
Josue Luzardo Gebrim

Written by Josue Luzardo Gebrim

As a platform engineer, ecosystems, and data solutions, I'm sharing my opinion and what little I know from time to time here.