Created
November 4, 2019 07:54
-
-
Save dejanvasic85/ed3ac9dc5f66a392915f17ae940baabb to your computer and use it in GitHub Desktop.
Create local postgres database with docker
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
| # Postgres Docker creates a volume by default so we only need the following parameters | |
| docker run -e POSTGRES_USER=<dbuser> -e POSTGRES_PASSWORD=<dbpassword> -e POSTGRES_DB=<dbname> -p 5432:5432 --name <dbname> -d postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment