Skip to content

Instantly share code, notes, and snippets.

@tarla
Created June 14, 2017 23:08
Show Gist options
  • Save tarla/ddad1b6d0d5ac90349d9f1071b15dcf5 to your computer and use it in GitHub Desktop.
Save tarla/ddad1b6d0d5ac90349d9f1071b15dcf5 to your computer and use it in GitHub Desktop.
Docker Compose
db:
image: postgres:9.6.3-alpine
ports:
- "5432"
web:
build: .
command: bundle exec rails s -p 9000 -b '0.0.0.0'
environment:
PORT: 9000
links:
- db:db
ports:
- "9000:9000"
volumes:
- ./:/usr/src/app
- ./vendor/bundle:/bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment