Skip to content

Instantly share code, notes, and snippets.

@tarla
Created July 31, 2016 16:34
Show Gist options
  • Save tarla/be5005bb6744a19d85deb101a53898da to your computer and use it in GitHub Desktop.
Save tarla/be5005bb6744a19d85deb101a53898da to your computer and use it in GitHub Desktop.
default docker-compose with alpine-postgresql
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