I'm trying to build a local selenium/hub to access my local development site and it's working fine but only with a single node. With two or more nodes I'm getting the following error (only one node is registered):
The problem is that we cannot play with ports if use . Do you have any idea how to handle this issue?
Here is the content of docker-compose file:
services: hub: image: selenium/hub network_mode: "host" environment: GRID_MAX_SESSION: 16 GRID_BROWSER_TIMEOUT: 3000 GRID_TIMEOUT: 3000 chrome: image: selenium/node-chrome container_name: web-automation_chrome depends_on: - hub network_mode: "host" environment: HUB_PORT_4444_TCP_ADDR: localhost PORT: 4444 volumes: - /dev/shm:/dev/shm firefox: image: selenium/node-firefox container_name: web-automation_firefox depends_on: - hub network_mode: "host" environment: HUB_PORT_4444_TCP_ADDR: localhost HUB_PORT_4444_TCP_PORT: 4444 volumes: - /dev/shm:/dev/shm