Skip to content

Instantly share code, notes, and snippets.

@mario21ic
Forked from franckweb/docker-compose.yml
Created October 24, 2017 21:23
Show Gist options
  • Save mario21ic/c703595ec64a10092e4ac0cb6e527dd0 to your computer and use it in GitHub Desktop.
Save mario21ic/c703595ec64a10092e4ac0cb6e527dd0 to your computer and use it in GitHub Desktop.
Selenium Grid docker compose file with firefox and chrome
version: '2'
services:
seleniumhub:
container_name: seleniumhub
image: selenium/hub
ports:
- "4444:4444"
firefoxnode:
container_name: firefoxnode
image: selenium/node-firefox-debug
ports:
- 4577
links:
- seleniumhub
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444
extra_hosts:
- "app.xmidigator.com:172.20.129.2"
- "admin.xmidigator.com:172.20.129.2"
chromenode:
container_name: chromenode
image: selenium/node-chrome-debug
ports:
- 4578
links:
- seleniumhub
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444
extra_hosts:
- "app.xmidigator.com:172.20.129.2"
- "admin.xmidigator.com:172.20.129.2"
networks:
default:
external:
name: build_static-network
# -hub URL http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment