Skip to content

Instantly share code, notes, and snippets.

@epintos
Last active October 29, 2016 14:33
Show Gist options
  • Save epintos/5728b878dd05a6dfe5f3 to your computer and use it in GitHub Desktop.
Save epintos/5728b878dd05a6dfe5f3 to your computer and use it in GitHub Desktop.
Ruby on Rails Continuous Integration with Jenkins and Docker Compose
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