Skip to content

Instantly share code, notes, and snippets.

@osbre
Last active April 27, 2023 15:43
Show Gist options
  • Save osbre/a74b98e2c2a16320ce70af6e73aa54ee to your computer and use it in GitHub Desktop.
Save osbre/a74b98e2c2a16320ce70af6e73aa54ee to your computer and use it in GitHub Desktop.
Run local PostgreSQL 15 container via Docker
docker run \
--name postgres15 \
-p 5432:5432 \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=justpgdb \
-v pgdata:/var/lib/postgresql/data \
-d \
postgres:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment