Skip to content

Welcome to my Blog!

My name is Aza Kamala and I am a software engineer. I write about programming, technology, and life in general. You can find me on LinkedIn, GitHub and Twitter.

Here are some of my latest posts:

Connect a Database Docker Container with a Node.js App Container

Introduction

When you have two Docker containers, one runs a database, and the other runs an application that needs to be connected to the database. You can’t connect it using the localhost address even if both Dockers run on the same machine. That is because each container has its own file system, network capabilities, and so on. Therefore, if you refer to localhost, it will search within the container (Which can’t be found).