Category: Database, Docker, container

I was totally confused when I was told to connect the docker container with local PostgreSQL. Finally, I found a way to do it easily with the help of StackOverflow and a little bit of help from my fellow colleague. There is a ruby project that needs to be connected to the local PostgreSQL and my task was to dockerize that whole thing.

To connect the docker container with local PostgreSQL, you need to write the docker-compose file in this manner.

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox.Explore

Related Articles