Github repo- https://github.com/atulsharmacsk/Sele...
Docker networking
The Hub and Nodes will be created in the same network and they will recognize each other by their container name. A Docker network needs to be created as a first step.
Docker compose-With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
Commands-
docker network create grid
docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.10.0-20230607
docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-chrome:4.10.0-20230607
docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-edge:4.10.0-20230607
docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_NODE_MAX_SESSIONS=5 selenium/node-firefox:4.10.0-20230607
docker-compose -f docker-compose.yaml up
docker-compose -f docker-compose.yaml down
Nesta página do site você pode assistir ao vídeo on-line 2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Test Automation with Atul Sharma 30 Julho 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,734 vezes e gostou 30 espectadores. Boa visualização!