Skip to content

Instantly share code, notes, and snippets.

@jldeen jldeen/docker-compose.yaml
Last active Mar 12, 2020

Embed
What would you like to do?
docker-compose Selenium Hub File
version: '2'
services:
selenium_hub:
image: selenium/hub:latest
ports:
- 4444:4444
environment:
- SE_OPTS=-debug
- GRID_MAX_SESSION=5
chrome_node:
image: selenium/node-chrome:latest
ports:
- 5900
- 5555
command: bash -c "sleep 5 && /opt/bin/entry_point.sh"
depends_on:
- selenium_hub
environment:
- HUB_HOST=selenium_hub
- REMOTE_HOST=http://chrome_node:5555
- NODE_MAX_SESSION=5
- NODE_MAX_INSTANCES=5
firefox_node:
image: selenium/node-firefox:latest
user: 1000:1000
ports:
- 5900
- 5555
command: bash -c "sleep 5 && /opt/bin/entry_point.sh"
depends_on:
- selenium_hub
environment:
- HUB_HOST=selenium_hub
- REMOTE_HOST=http://firefox_node:5555
- NODE_MAX_SESSION=5
- NODE_MAX_INSTANCES=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.