Skip to content

Instantly share code, notes, and snippets.

@braidn
Last active October 26, 2018 13:34
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 braidn/7cb4702d5508cdf7a0a6e9a92120fc6c to your computer and use it in GitHub Desktop.
Save braidn/7cb4702d5508cdf7a0a6e9a92120fc6c to your computer and use it in GitHub Desktop.
docker compose file for selenium
version: '3'
services:
chromedriver:
image: selenium/standalone-chrome-debug
ports:
- 5900:5900
environment:
VNC_NO_PASSWORD: 1
web:
build: .
image: something
command: bundle exec puma -b 'tcp://0.0.0.0:9292'
ports:
- 9292:9292
volumes:
- .:/app
environment:
RACK_ENV: development
DATABASE_URL: postgres://postgres@db:5432/dev
depends_on:
- db
test:
image: something:latest
command: bundle exec puma -b 'tcp://0.0.0.0:3034' #bundle exec rake test
ports:
- 3034:3034
volumes:
- .:/app
environment:
RACK_ENV: test
depends_on:
- db
- chromedriver
db:
image: postgres:10-alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment