The internal networking of Docker (Compose) projects is confusing to many, so I would hope your question would be received kindly on any forum.
I would suggest looking at two things. First, make sure that both containers (selenium and the one your are running DuskTestCase.php from) are on the same network (mynetwork).
Second, instead of using the container name, use the service name. The my-app-name_selenium domain you use in your code looks like the container name that you would see from the host (your computer), for example when running docker ps. But that full name is probably not known from within the docker project. Instead it (the DNS within Docker) is only aware of the service names (i.e. the keys used in the docker-compose.yml file as children of services: ). In your case that would be selenium.
(Perhaps you can even leave out http://)