Created
July 31, 2016 16:34
-
-
Save tarla/be5005bb6744a19d85deb101a53898da to your computer and use it in GitHub Desktop.
default docker-compose with alpine-postgresql
This file contains hidden or 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: kiasaki/alpine-postgres | |
ports: | |
- "5432" | |
web: | |
build: . | |
command: bundle exec rails s -p 9000 -b '0.0.0.0' | |
environment: | |
BUNDLE_JOBS: 2 | |
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