Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexeyismirnov/2e52b512a0d5dd9152a57544b5be1711 to your computer and use it in GitHub Desktop.
Save alexeyismirnov/2e52b512a0d5dd9152a57544b5be1711 to your computer and use it in GitHub Desktop.
Create PostgreSQL container on MacOS
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