Last active
January 20, 2017 13:58
-
-
Save RyanHirsch/720f0b683ca59a616363cea9ab6ec4ec to your computer and use it in GitHub Desktop.
Postgres Docker stuff for https://frontendmasters.com/courses/production-node-aws/ and https://github.com/kwhinnery/todomvc-plusplus
This file contains hidden or 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
| { | |
| "db:create": "docker run --name todomvc-plusplus -v $(pwd)/pgdata:/var/lib/postgresql/data/pgdata -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -e PGDATA=/var/lib/postgresql/data/pgdata -d postgres", | |
| "db:start": "docker start todomvc-plusplus", | |
| "db:stop": "docker stop todomvc-plusplus", | |
| "db:remove": "npm run db:stop && docker rm todomvc-plusplus" | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also can install Postico for GUI access via brew
brew cask install portico