Skip to content

Instantly share code, notes, and snippets.

@cmar
Last active May 21, 2017 13:10
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 cmar/a22f58241dafbb9ae75ce7b73d9de582 to your computer and use it in GitHub Desktop.
Save cmar/a22f58241dafbb9ae75ce7b73d9de582 to your computer and use it in GitHub Desktop.
docker-compose.yml
# add this file to your project and run
# docker-compose up
# point your database.yml to postgres on localhost:5432
version: '2'
services:
db:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment