My GoLang app needs to talk to my db running postgres in a docket container but I’m being forced to run postgres on my local system even when the container is running to get it to connect. Any idea why?
Isn't it risky to store run database in a container and store data inside it? what if the container crashes? or this is just for development and in production, you will not run the database in a container.
storing images in database is not a good idea since ever. store it on disk or a service like aws s3 and save only the reference (path/url) on the database
what is the correct IP to use when connecting from the host to the Postgres instance in the Docker container? both localhost and 127.0.0.1 don't work for me on Windows :/
@@michaelndiritu6413 yep I did. I read online that you need to use the external IP of the host instead of localhost, but couldn't get it working Note: I mean connecting from another app (eg. VS Code), not using psql
Thanks have been trying to load data to my Vs code from postgres docker you explained it well for me to understand
the -d is for demon mode, it is easier to remember with this :)
Thank you. Clear and concise tutorial without the boilerplate... Subbed :)
thanks, welcome :)
Thanks Ben. Super helpful. Thanks!
Excellent video Ben - keep them coming :-)
Thanks will do :)
Thanks! This is a docker course? And will you show docker-compose?
at the end of this video, he says the next video is gonna be docker-compose.
Clear and Crisp
Excellent series 👌👌
Thank you so much!
Where exactly is pgdata on the host machine? It seems kinda arbitrary
This video is gold... thanks a lot!
My GoLang app needs to talk to my db running postgres in a docket container but I’m being forced to run postgres on my local system even when the container is running to get it to connect. Any idea why?
This videos are amazing !
Docker-compose is easier to use. I one Time you can create more than one container with postgres and pgadmin
Awesome man!! To the point video :)
awesome
After ruining SQL it will persist the data ?? Like next when I run it will have the DB and Tables with running SQL ??
Hey! Any chance you could put up a tutorial on fastlane and deploying to the app store?
I haven't used it yet, I've been using Expo to deploy.
When I give it a try, I'll do a video on it.
Hey any chances you would do a tutorial on hosting a pg db on aws rds and ecr/ecs? Thanks!
What would you like to see in it?
For RDS you create an instance and then can connect to it with the url they give you.
A dockerized express backend + rds + ci/cd with ecr ecs circleci would be awesome
K
Where is the next part video?
Isn't it risky to store run database in a container and store data inside it? what if the container crashes? or this is just for development and in production, you will not run the database in a container.
Yea, I was thinking he’d mention more about how the data is persistent
Is it possible to create a database with psql to store images, if so how? Thanks for the video.
storing images in database is not a good idea since ever. store it on disk or a service like aws s3 and save only the reference (path/url) on the database
@@felipebutcher ok, thank you. I have a look at how to do it with s3.
what is the correct IP to use when connecting from the host to the Postgres instance in the Docker container? both localhost and 127.0.0.1 don't work for me on Windows :/
Did you specify the port?
It should be 127.0.0.1:5432
@@michaelndiritu6413 yep I did. I read online that you need to use the external IP of the host instead of localhost, but couldn't get it working
Note: I mean connecting from another app (eg. VS Code), not using psql
must the username and password be postgres
For some reason I’m forced to have have postgres running
How to connect without Postgres 2:55 (self note)
Please extend the series with kubernetes, since digitalocean now got it!
I'm still a kubernetes noob
Me too but since do just got it i'm gonna try and see where it gets me :)
I just got access to beta program of it, it is really nice in digitalocean
Harshit Pant yeah. Me too. Now i'm gonna test it!!
I love you man ♥‿♥
667