Last active
July 23, 2021 15:28
-
-
Save reyx/6d5a267e6cf2d33c5eca75897cec0535 to your computer and use it in GitHub Desktop.
Create local docker postgres database
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
sudo docker volume create pgdata | |
sudo docker run --name reyx-postgres \ | |
-e POSTGRES_PASSWORD=supersecret \ | |
-v pgdata:/var/lib/postgresql/data \ | |
-p 5432:5432 -d postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment