Skip to content

Selenium Grid

Somkiat Puisungnoen edited this page Aug 9, 2019 · 1 revision

File docker-compose.yml

version: "3.7"
services:
  selenium-hub:
    image: selenium/hub:3.141.59-titanium
    container_name: selenium-hub
    ports:
      - "4444:4444"
  chrome:
    image: selenium/node-chrome:3.141.59-titanium
    depends_on:
      - selenium-hub
    environment:
      - HUB_HOST=selenium-hub
      - HUB_PORT=4444

Run

$docker-compose up -d --scale chrome=5
$docker-compose ps
$docker-compose logs --follow
$docker-compose down
Clone this wiki locally