Created
June 14, 2017 23:08
-
-
Save tarla/ddad1b6d0d5ac90349d9f1071b15dcf5 to your computer and use it in GitHub Desktop.
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: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