Skip to content

Instantly share code, notes, and snippets.

@jldeen
Last active March 12, 2020 03:47
Show Gist options
  • Save jldeen/7f2b69b57fdb28d0240d5389bc1d6047 to your computer and use it in GitHub Desktop.
Save jldeen/7f2b69b57fdb28d0240d5389bc1d6047 to your computer and use it in GitHub Desktop.
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