Skip to content

Instantly share code, notes, and snippets.

@diemol
Created April 16, 2017 15:16
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 diemol/2ed7b1d5e711d1bcc4eec29951347653 to your computer and use it in GitHub Desktop.
Save diemol/2ed7b1d5e711d1bcc4eec29951347653 to your computer and use it in GitHub Desktop.
version: '2.1'
services:
app:
extends:
file: ../../docker-compose.yml
service: app
environment:
# Path is relative to the location of the dev server.
- WEBPACK_CONFIG=./acceptance/webpack.config.acceptance.js
expose:
- '3000'
volumes:
- ./screenshots:/usr/src/app/tests/acceptance/screenshots
selenium:
image: selenium/hub
expose:
- '4444'
ports:
- '4444:4444' # so we can ping for the status of the nodes
environment:
- GRID_DEBUG=true
devices:
# Try to prevent Selenium from blocking when creating sessions due to
# limitd entropy.
- /dev/urandom:/dev/random
chrome:
image: selenium/node-chrome
firefox:
image: selenium/node-firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment