Skip to content

Instantly share code, notes, and snippets.

@GetoXs
Created August 8, 2020 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GetoXs/1d1469b4fb4ac83d39e7efc3d24cd630 to your computer and use it in GitHub Desktop.
Save GetoXs/1d1469b4fb4ac83d39e7efc3d24cd630 to your computer and use it in GitHub Desktop.
Docker with Selenium hub + Chrome driver + Maven dev
ersion: "3"
services:
selenium-hub:
image: selenium/hub:3.141.59
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59
container_name: chrome
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- JAVA_OPTS=-Dwebdriver.chrome.whitelistedIps=
mvn:
image: maven:adoptopenjdk
container_name: mvn
volumes:
- ~/.m2:/root/.m2
- ./:/usr/src/mvn-src
working_dir: /usr/src/mvn-src
command: tail -f /dev/null
# command: mvn clean install -Dselenium-hub.host=selenium-hub
links:
- selenium-hub
- chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment