Skip to content

Instantly share code, notes, and snippets.

@reyx
Last active July 23, 2021 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyx/6d5a267e6cf2d33c5eca75897cec0535 to your computer and use it in GitHub Desktop.
Save reyx/6d5a267e6cf2d33c5eca75897cec0535 to your computer and use it in GitHub Desktop.
Create local docker postgres database
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