Last active
April 27, 2023 15:43
-
-
Save osbre/a74b98e2c2a16320ce70af6e73aa54ee to your computer and use it in GitHub Desktop.
Run local PostgreSQL 15 container via Docker
This file contains 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
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