Skip to content

Instantly share code, notes, and snippets.

@campezzi
Created September 7, 2016 11:08
Show Gist options
  • Save campezzi/247163a8b25e0cbadf0651ce75e8f519 to your computer and use it in GitHub Desktop.
Save campezzi/247163a8b25e0cbadf0651ce75e8f519 to your computer and use it in GitHub Desktop.
PostGres Provisioning with docker-compose
version: '2'
services:
dev_db:
image: "postgres:9.5"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=dev_database
ports:
- 5432:5432
test_db:
image: "postgres:9.5"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=test_database
ports:
- 5433:5432
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment