Skip to content

devksandr/docker-containers-isolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository description

An example of how to isolate a docker container from outside influence

Applications desciption

Node was used to implement two applications: appA and appB. When opening the appA page, data from appB will be requested

Network isolation

  • Application appA forwards port 3000 to the outside and becomes accessible from the outside - the global_network network is used
  • The appB application has port 3001, but does not forward the port to the outside

Applications appA and appB are on the same local_network, so they can communicate with each other by name For example appA accesses appB at: http://appB:3001

Diagram

schema

Usage

Repositiory uses docker-compose to build:

docker compose up -d --build

To open the page need to get SERVER_IP where containers are located and follow the link:

SERVER_IP:3000

About

An example of how to isolate a docker container from outside influence

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published