version: '2'

services:
  hub:
    image: selenium/hub
    container_name: cyber-dojo-selenium-hub
    ports:
      - "4444:4444"

  node_firefox:
    image: selenium/node-firefox
    container_name: cyber-dojo-selenium-node-firefox
    restart: on-failure
    links:
      - "hub"
    environment:
      - "HUB_PORT_4444_TCP_ADDR=hub"
      - "HUB_PORT_4444_TCP_PORT=4444"
      - "SCREEN_WIDTH=1920"
      - "SCREEN_HEIGHT=1080"
    networks:
      - "default"
      - "cyber-dojo"
    ports:
      - "5900:5900"

  node_chrome:
    image: selenium/node-chrome
    container_name: cyber-dojo-selenium-node-chrome
    restart: on-failure
    links:
      - "hub"
    environment:
      - "HUB_PORT_4444_TCP_ADDR=hub"
      - "HUB_PORT_4444_TCP_PORT=4444"
      - "SCREEN_WIDTH=1920"
      - "SCREEN_HEIGHT=1080"
    networks:
      - "default"
      - "cyber-dojo"
    ports:
      - "5901:5900"

networks:
  cyber-dojo:
    external:
      name: app_default
version: '2'

services:
  hub:
    image: selenium/hub:2.53.0
    container_name: cyber-dojo-selenium-hub
    ports:
      - "4444:4444"

  node_firefox:
    image: selenium/node-firefox:2.53.0
    container_name: cyber-dojo-selenium-node-firefox
    restart: on-failure
    links:
      - "hub"
    environment:
      - "HUB_PORT_4444_TCP_ADDR=hub"
      - "HUB_PORT_4444_TCP_PORT=4444"
      - "SCREEN_WIDTH=1920"
      - "SCREEN_HEIGHT=1080"
    networks:
      - "default"
      - "cyber-dojo"
    ports:
      - "5900:5900"

  node_chrome:
    image: selenium/node-chrome:2.53.0
    container_name: cyber-dojo-selenium-node-chrome
    restart: on-failure
    links:
      - "hub"
    environment:
      - "HUB_PORT_4444_TCP_ADDR=hub"
      - "HUB_PORT_4444_TCP_PORT=4444"
      - "SCREEN_WIDTH=1920"
      - "SCREEN_HEIGHT=1080"
    networks:
      - "default"
      - "cyber-dojo"
    ports:
      - "5901:5900"

networks:
  cyber-dojo:
    external:
      name: app_default
Switch to using Selenium 2.53.0 as Firefox and Selenium 3 have issues with clicking on elements at the moment
Switch to using Selenium 2.53.0 as Firefox and Selenium 3 have issues with clicking on elements at the moment
