Primary Container Network Name

Hi! We have a setup that uses multiple docker images (circleci v2).
Primary is a webserver and secondary container is a selenium host.

The issue is selenium can’t reach the primary container. I tried to open the webpage with http://localhost and http://{container->name} but none works.