simple application with nodejs & cassandra in a container under a separate network
NOTE : Here i am using my own private npm repository. Because of that i am using an unique ip in my Dockerfile.
How to create separate network :
Using the below command we can easily see the Current network
$ docker network inspect bridge
Create a new network
$ docker network create —driver bridge service
Using docker compose applying the network to the containers.
Step 1 : create your network with the name of “service”
Step 2 : replace or comment the registry configuration line from Dockerfile
“ RUN npm set registry http://192.168.1.160:4873/“
Step 3 : run the below command
$ docker-compose up —build
Step 4 : make the rest call GET : ip:8000/account/vivek