Created
August 15, 2019 07:42
-
-
Save raccoonyy/c365c5a17e24dc49ffc1cb8726c267c7 to your computer and use it in GitHub Desktop.
postgres-docker
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 run -d \ | |
--name db \ | |
-p 5432:5432 \ | |
-e POSTGRES_DB=djangodb \ | |
-e POSTGRES_USER=django \ | |
-e POSTGRES_PASSWORD=djangopassword \ | |
-v $(pwd)/data:/var/lib/postgresql/data \ | |
postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment