Created
May 11, 2019 09:14
-
-
Save roshanraj/30c385f7f7249c6c8fe18b2ccc304c60 to your computer and use it in GitHub Desktop.
postgres 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: | |
dbpostgres: | |
image: postgres | |
volumes: | |
- /private/var/lib/postgresql:/var/lib/postgresql | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: username | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: pgdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment