Skip to content

Instantly share code, notes, and snippets.

@dejanvasic85
Created November 4, 2019 07:54
Show Gist options
  • Select an option

  • Save dejanvasic85/ed3ac9dc5f66a392915f17ae940baabb to your computer and use it in GitHub Desktop.

Select an option

Save dejanvasic85/ed3ac9dc5f66a392915f17ae940baabb to your computer and use it in GitHub Desktop.
Create local postgres database with docker
# 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