Created
June 27, 2023 07:15
-
-
Save alexeyismirnov/2e52b512a0d5dd9152a57544b5be1711 to your computer and use it in GitHub Desktop.
Create PostgreSQL container on MacOS
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 -d --name some-postgres -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=password -e POSTGRES_DB=buffalo -v /Users/alexey/workspace/tmp2/pgdata:/var/lib/postgresql/data -p 5432:5432 postgres | |
# Connect to DB instance | |
psql -h 127.0.0.1 -U admin buffalo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment