-
-
Save sanjibukai/1a97fd67183bef2a715bfda0380b0f43 to your computer and use it in GitHub Desktop.
Docker compose file for Rails and Selenium chrome
This file contains 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: | |
#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