Process Flow - Connecting containers to multiple networks
Container
Container
frontend-net
172.18.0.0/16
Container
"nginx"
A container can connect to multiple Docker networks simultaneously. The 'app' container bridges both frontend-net and backend-net, while nginx and postgres are isolated to their respective networks. This creates network segmentation — nginx cannot reach postgres directly.