>>107699693
I know it's a bad example since you wouldn't have two interactive containers on the same shell, but you get the point.
with docker-compose, you declare everything on your docker-compose.yaml and then you do
networks:
default:
driver: bridge
for every one of your containern you want on that network. Easy peasy lemon squeezy