简体   繁体   中英

how to setup the environment for docker containers without exposing the ports

Docker is Installed in the AWS instance. Multiple Web Applications and databases are running on docker containers. Docker ports are mapped with AWS local host ports. When AWS ports are blocked from the security groups, web applications and databases running on docker container goes down. how to setup the environment without exposing the web app ports (ie, AWS instance ports) to public network?

The application running on that ports won't be getting down as the ports would be open locally. While accessing the application since the ports are blocked the request is not routed till the docker instances.

You can update the security group inbound rules to access the application within the VPC subnet. ie in the CIDR block you can specify the IP range that will be routed to the docker services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM