Last active
October 26, 2018 13:34
-
-
Save braidn/7cb4702d5508cdf7a0a6e9a92120fc6c to your computer and use it in GitHub Desktop.
docker compose file for selenium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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