I am new to using postgres database… and I as was trying to create a local database using postgres but I am not able to connect to it.
I have ran these brew commands to install them in my computer
brew install docker
brew install docker-compose
brew install daemon
This is my docker-compose.yml file
version: '3.2'
services:
db:
container_name: my_db
image: "postgres"
restart: always
ports:
- "5440:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POS
when I try to connect it from main.go file it refuses to connect
Here are the attached images…
[enter image description here](https://i.sstatic.net/Fyt4ndeV.png)
I am not able to identify what am I doing wrong is there something that isn’t downloaded…
Kamal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.