Created
September 7, 2016 11:08
-
-
Save campezzi/247163a8b25e0cbadf0651ce75e8f519 to your computer and use it in GitHub Desktop.
PostGres Provisioning with docker-compose
This file contains 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
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 |
This file contains 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
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment