Skip to content

Instantly share code, notes, and snippets.

@george-haddad
Created November 21, 2022 10:35
Show Gist options
  • Save george-haddad/b4934c571de22025941e9ffbd51175e2 to your computer and use it in GitHub Desktop.
Save george-haddad/b4934c571de22025941e9ffbd51175e2 to your computer and use it in GitHub Desktop.
PostgreSQL Quickstart docker command

Need to get a PostgreSQL DB up and runing locally for testing. Command spins a Postgres docker with standard env params for a user, password and initial db.

docker run --name postgresql \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=P@ssW0rd12345 \
  -e POSTGRES_DB=postgres \
  -p 5432:5432 \
  -d postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment