Created
February 1, 2017 18:24
-
-
Save brianv0/2e20532397cf3c414570adc1b040bddc to your computer and use it in GitHub Desktop.
Create postgres db
This file contains hidden or 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
PASSWORD=somePassword | |
docker volume create airflow-data | |
docker run --rm \ | |
--name airflow-db \ | |
-e POSTGRES_PASSWORD=$PASSWORD \ | |
-v airflow-data:/var/lib/postgresql/data postgres:9.5 | |
-d postgres:9.5 | |
docker run -p 5432:5432 --rm --name airflow-db -v airflow-data:/var/lib/postgresql/data -d postgres:9.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment