In a simple docker-compose structure like this
version: "2"
services:
app:
image: myapp
db:
image: mydb
a bridge network is automatically created, which allows:
app
anddb
to see each otherapp
anddb
to see the host's networkapp
anddb
to reach internet
How can I disallow point 2 while keeping the other two?
Does explicitly creating a bridge network make any difference?