Skip to content

Instantly share code, notes, and snippets.

@sanjibukai
Created June 24, 2017 03:20
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 sanjibukai/1a97fd67183bef2a715bfda0380b0f43 to your computer and use it in GitHub Desktop.
Save sanjibukai/1a97fd67183bef2a715bfda0380b0f43 to your computer and use it in GitHub Desktop.
Docker compose file for Rails and Selenium chrome
version: '3'
services:
#DATABASES
db:
image: postgres
container_name: db
volumes:
- pgdata:/var/lib/postgresql/data
#RAILS
web:
build: .
# command: bundle exec rails s -p 3000 -b '0.0.0.0'
container_name: web
volumes:
- ./app:/root/docker
ports:
- 3000:3000
- 8080:8080
tty: true
stdin_open: true
depends_on:
- db
#TEST - BROWSER
selenium:
image: selenium/standalone-chrome
ports:
- 4444:4444
- 5900:5900
volumes:
pgdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment