Specify browser version for Selenium nodes into docker-compose.yml
I am currently setting up a Selenium Grid through Docker, and more specifically via docker-compose. I am very new to those tools, so I apologize if the answer is obvious, but I couldn't solve it by myself with the doc nor any SO question. The problem is: I was planning on using official Selenium images (selenium/hub, selenium/node-chrome and selenium/node-firefox), but I can't figure out how to specify the browser version of each node. I know that for instance, my node-chrome image contains a specific version of Chrome, depending on its Dockerfile, but I would like to make that version visible from the hub, so that I can run my tests against several versions of each browser, i.e. several nodes. If I'm not clear enough, here is my current hub, with indication of what I am refering to : Hub configuration overview Detailed node configuration As you might guess, my docker-compose.yml is very simple at the moment : version: "2.0" networks: sel_grid: driver: bridge services: hub: image: selenium/hub:3.0.1-barium ports: - "4444:4444" container_name: hub networks: - sel_grid node_chrome: image: selenium/node-chrome:3.0.1-barium environment: - HUB_PORT_4444_TCP_ADDR=hub - HUB_PORT_4444_TCP_PORT=4444 depends_on: - hub networks: - sel_grid node_firefox: image: selenium/node-firefox:3.0.1-barium environment: - HUB_PORT_4444_TCP_ADDR=hub - HUB_PORT_4444_TCP_PORT=4444 depends_on: - node_chrome networks: - sel_grid ... and my compose version is $ docker-compose --version docker-compose version 1.9.0, build 2585387 NOTE My current configuration works well, the only thing I would get is the possibility to handle browser versions through a docker-compose.yml. So any comment about other aspects are welcome as I'm kind of a newbie to Docker, but my principal concern remains the browser versioning. By the way, I have already tried to build my own images of the nodes, based on selenium/node-base with custom Dockerfile, but the browser still won't specify his version from the outside, if not simply throwing an error during installation. Thanks for any help !
How to run ad hoc docker compose commands in Ansible?
Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME
docker compose 3.1(swarm), secrets, ssl and nginx
What is the version directive for?
How to run docker-compose up -d at system start up?
In Docker Compose can I have services exiting
Docker compose - secrets Additional property secrets is not allowed
docker-compose mounted volume remain
Should I do anything after upgrading docker-compose?
docker caddy proxy not forwarding
docker share OS volume between services
How dynamic map service name to ENV var