Skip to content

Instantly share code, notes, and snippets.

@clalimarmo
Created September 9, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clalimarmo/d4aa4e944e0b7e9a4e10 to your computer and use it in GitHub Desktop.
Save clalimarmo/d4aa4e944e0b7e9a4e10 to your computer and use it in GitHub Desktop.
Rails development environment with Docker (step 2 - postgres)
web:
build: ./
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
ports:
- "3000:3000"
links:
- db
db:
image: postgres:9.4
expose:
- "5432"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment