Last active
October 29, 2016 14:33
-
-
Save epintos/5728b878dd05a6dfe5f3 to your computer and use it in GitHub Desktop.
Ruby on Rails Continuous Integration with Jenkins and Docker Compose
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
db: | |
image: postgres | |
ports: | |
- "5432" | |
redis: | |
image: redis | |
ports: | |
- "6379" | |
web: | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/myapp | |
ports: | |
- "3000:3000" | |
environment: | |
- DB_USERNAME=postgres | |
- DB_PASSWORD= | |
links: | |
- db | |
# - redis | |
# sidekiq: | |
# build: . | |
# command: bundle exec sidekiq | |
# links: | |
# - db | |
# - redis | |
# volumes: | |
# - .:/usr/src/service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment