DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How To Connect Docker Container With Local PostgreSQL

4 years ago faun.pub
How To Connect Docker Container With Local PostgreSQL

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com